Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
POKE STRING and @string$
#15
nitrofurano Wrote:thanks, but when testing

Code:
sub cpymempaged(src as Uinteger,des as Uinteger,length as Uinteger,bank as ubyte):
  asm
    ld a,(ix+11)
    ld bc,32765
    out (c),a
    ld hl,(ix+5)
    ld de,(ix+7)
    ld bc,(ix+9)
    ldir
    ld a,(23388)
    ld bc,32765
    out (c),a
  end asm
end sub
sub cpymem(src as Uinteger,des as Uinteger,length as Uinteger):
  asm
    ld d,(ix+7)
    ld e,(ix+6)
    ld h,(ix+5)
    ld l,(ix+4)
    ld b,(ix+9)
    ld c,(ix+8)
    ldir
  end asm
end sub
cls
cpymem(17000,12000,400)
pause 0

i got from terminal:
Code:
memcopytest.bas:5: Error: Syntax error. Unexpected token 'IX' [IX]

(btw, sorry about the offtopic... :S )
Okay, so I do now know which one was not working... LD registerpair,(IX+offset) is invalid. Then this should work:
Code:
sub cpymempaged(src as Uinteger,des as Uinteger,length as Uinteger,bank as ubyte)
  asm
    ld a,(ix+11)
    ld bc,32765
    out (c),a
    ld h,(ix+5)
    ld l,(ix+4)
    ld d,(ix+7)
    ld e,(ix+6)
    ld b,(ix+9)
    ld c,(ix+8)
    ldir
    ld a,(23388)
    ld bc,32765
    out (c),a
  end asm
end sub
------------------------------------------------------------
http://lcd-one.da.ru redirector is dead
Visit my http://members.inode.at/838331/index.html home page!
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)