I cant get my fill.asm to work but I do not know what I am doing wrong, no doubt something stupid as usual!
I get the error "In line 16 expression expected" I don't think I'm doing anything too different from what I was doing for the first exercise mult.asm , but yet I cant get it working at all. I shall re-read the chapter but hopefully someone here can help me out! my code is below. Commented with what I think I'm doing, in effort to facilitate my feeble mind!
Possible spoilers for those that haven't yet solved this..
@screen // variable to hold the start location of the screen
D = 16384
M = D // set to start value of 16384 , the first 16 pixels of the screen
@screenEnd // variable to hold the end value of the screen
D = 24575
M = D // set to end value of 24575, the last 16 pixels of the screen
I seem to be having trouble with the emulator, as sometimes it works and other times it doesn't... i've gotten the screen completely black but other times it doesn't, with program flow it works more often. test fails, and one time it would fill the first 16 pixels and clear them when i press and let go of a key... not sure what is worng to be hoenst
but even when its black it fails to return to white, which i dont understand..