WHILE OPERATOR: "E97" EXAMPLES

Back to:
index Intel

On this page you can see the results of WHILE operator's realization in "E97" code. You may need to look additionally for some details about conditions coding.

1. WHILE x<5 DO {cycle's body}; (DE - address of variable x)
Address, codeOperationsPascal comments
000A 01E1
000C 00DE
(DE) ==> R1 Extract x
000E 2451 compare R1 with const 5 Is x < 5 ?
0010 2C0D
0012 0022
jump if >=0 Exit if FALSE
0014
...
001C
{cycle's body}
001E 1C0D
0020 000A
unconditional jumpTo repeat cycle
0022

2. WHILE b DO {cycle's body}; (DF - address of BOOLEAN variable b)
Address, codeOperationsPascal comments
000A 81E1
000C 00DF
(DF)b ==> R1 Extract b (byte value)
000E E401 compare R1b with 0b Is b <> 0 (TRUE)?
0010 5C0D
0012 0022
jump if =0 Exit if FALSE
0014
...
001C
{cycle's body}
001E 1C0D
0020 000A
unconditional jump To repeat cycle
0022



Back to:
index top Intel