05-14-2013, 03:09 PM
im trying to learn assembly, but keep getting strange results
this program for example
this is supposed to draw something to the screen 100 times
is the for next loop interfering with the assembly?
this program for example
Quote:function FASTCALL downone() as ubyte
asm
INC HL
end asm
end function
function FASTCALL setup() as ubyte
asm
LD HL,16384
end asm
end function
'LD B,0
function FASTCALL drawthis() as ubyte
asm
LD A,128
LD (HL),A
end asm
end function
Dim res as String
setup()
for x=0 to 100
downone()
drawthis()
next
this is supposed to draw something to the screen 100 times
is the for next loop interfering with the assembly?