C64 ROM | Routines |
Prev: E8A1 | Up: Map | Next: E8CB |
E8B3 | A2 02 | LDX #$02 | set the count | |
E8B5 | A9 27 | LDA #$27 | set the column | |
E8B7 | C5 D3 | CMP $D3 | compare the column with the cursor column | |
E8B9 | F0 07 | BEQ $E8C2 | if at end of line test and possibly increment cursor row | |
E8BB | 18 | CLC | else clear carry for add | |
E8BC | 69 28 | ADC #$28 | increment to the next line | |
E8BE | CA | DEX | decrement the loop count | |
E8BF | D0 F6 | BNE $E8B7 | loop if more to test | |
E8C1 | 60 | RTS | ||
cursor is at end of line
|
||||
E8C2 | A6 D6 | LDX $D6 | get the cursor row | |
E8C4 | E0 19 | CPX #$19 | compare it with the end of the screen | |
E8C6 | F0 02 | BEQ $E8CA | if at the end of screen just exit | |
E8C8 | E6 D6 | INC $D6 | else increment the cursor row | |
E8CA | 60 | RTS |
Prev: E8A1 | Up: Map | Next: E8CB |