Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Assembly question
#12
im trying to learn assembly, but keep getting strange results

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?
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)