ULONG division demonstration

The syntax of the "L" command is:
L Numerator Denominator
   Numerator is a string, in either decimal or hexadecimal format.
   Denominator is a string, in either decimal or hexadecimal format.
(or)
   LOC or LOG are special cases, used in script and remote logout commands.
Notes:
  No distinction is made between uppercase and lowercase.
  ULONG means UNSIGNED LONG INTEGER (i.e., 0 to 4,294,967,295 = 0xFFFFFFFF)
  Do not input commas when using decimal format.
  Assumes that two numeric values are passed; no error if not, however.
  "LOC" is short for "LOCK", "LOG" for "LOGOUT" or "LOGOFF"

The "LOC" or "LOG" commands perform the same function. If the device is in either privileged (i.e., Manager or Admin) mode, it exits that mode. If the device is not in a privileged mode, no change is made. These are particularly useful when logged into a remote device, in which case the '$' first-key cannot be transmitted to it.

The 'L' command demonstrates the division of one ULONG value by another ULONG value. The first numeric value on the command line is parsed into R25:R24:R23:R22 and the second into R21:R20:R19:R18. The Registers after parsing are shown in the first line. The Divide2ULONGs subroutine is called and the results displayed on the second line. The quotient is returned in R25:R24:R23:R22 and the remainder in R21:R20:R19:R18.

>L 0x01E8480 10

 10   32   54   76   98  1110 1312 1514 1716 1918 2120 2322 2524 2726 2928 3130
---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ----
0000 8480 001E FF28-0004 0000 0000 4000-0029 000A 0000 8480-001E 0000 0280 3160
0000 8480 001E FF28-0004 0000 0000 4000-0029 0000 0000 0D40-0003 0000 0280 3160
>?, 0x1E8480
2,000,000
>?, 0x00030D40
200,000
>
>L 115201 8

 10   32   54   76   98  1110 1312 1514 1716 1918 2120 2322 2524 2726 2928 3130
---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ----
0000 C201 0001 FF28-0004 0000 0000 4000-0029 0008 0000 C201-0001 0000 0280 3160
0000 C201 0001 FF28-0004 0000 0000 4000-0029 0001 0000 3840-0000 0000 0280 3160
>?, 0x03840
14,400
>; Quotient: 14,400 (in R25:..:R22) and remainder: 1 (in R21:..:R18)
>
>  ; Logon using '$' as the first character on the line
m>Lock
>
m>Log
>
m>Logout
>                                                                               
Please perform as much additional testing with the "L" system command as you like.

See also:
  The Signed LONG division test command and "?" evaluation command as well as the Divide2INTs and Divide2ULONGs system function calls.