Hi Crayon I get an error 5/44. Looks like you are printing beyond the last line. Its usually at the kill dragon bit (although it never says dragon, just enemies nearby - then what with you bare hands?). I can get there if I try to play the game sensibly, or just enter random commands. Always the sam...
LD A,$00 DEC HL CP H Ah, now I see what you are doing... @HullZX81man, I use TASM. I write the code in Notepad++, a batch file (below) assembles the code and produces a .p file which I can then drop onto eightyone emulator to test. @echo off set /p file=File to compile: echo.assembling tVars.asm tas...
Hi XavSnap I understand how the LDIR call works. Your examples show this to good effect. When I said that Panthers second example wasn't working, it was because the HL and DE registers had never been initialised. Therefore they would have been moving data anywhere, but it wasn't to the screen. Also,...
Hi Xavsnap Are you saying it's printing the contents of A (first character) and then continuing until BC=0 but just printing blank spaces (ignoring A) ? Yes, the LDIR command only operates on HL, DE, BC registers. We dont know what addresses HL or BC are pointing to, just that they pass the contents...
@XavSnap, yes, but to be pedantic, 704 + 23 N/L is 727, not 726. Also using Call Print or RST#10 would only print in printable locations, so the count has to be 704.
Why did you use $03BF as the counter? Isnt that more than a standard screen?