Started by ervin, 17:08, 09 September 10
0 Members and 1 Guest are viewing this topic.
org &4000diexxld bc,2exxeiret
Quote from: ervin on 17:08, 09 September 10Hi all.I'm having a rather odd problem.This code causes strange behaviour when assembled and run from WinAPE's assembler:Code Select Expandorg &4000diexxld bc,2exxeiretAs far as I understand it, this should be ok, as HL, DE & BC all have alternate registers which can be accessed via EXX.The above code is fine if I use HL or DE instead of BC.Am I doing something wrong?Or does WinAPE have a problem with this sort of thing?Thanks for any help.
Quote from: arnoldemu on 17:10, 09 September 10I see you're returning back to basic.Basic/firmware uses BC' to store the I/O address of the gate-array and the current state of the roms and video mode.So really you need to store firmware's version of BC' and restore it back before you return.
org &4000diexxpush bcld bc,2pop bcexxeiret
Page created in 0.054 seconds with 30 queries.