Serial interrupt ACE: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
(I found out that Evie actually discovered invalid printer opcodes way before I did, so I added attribution.) |
(Added disassembly for the example in the page) |
||
Line 102: | Line 102: | ||
Main code: 3E 81 E0 01 E0 02 F0 43 |
Main code: 3E 81 E0 01 E0 02 F0 43 |
||
0E 01 A9 E0 43 C9 |
0E 01 A9 E0 43 C9 |
||
{{Explanation|title=Disassembly of the payload |contents= |
|||
ld a, $81 ; 3E 81 |
|||
ldh [rSB], a ; E0 01 |
|||
ldh [rSC], a ; E0 02 trigger serial transfer |
|||
ldh a, [rSCX] ; F0 43 read X scroll |
|||
ld c, $01 ; 0E 01 |
|||
xor a, c ; A9 toggle X scroll LSB |
|||
ld [rSCX], a ; E0 43 write it back |
|||
ret ; C9}} |
|||
To prepare the setup: |
To prepare the setup: |
||