Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
128k memory paging, how can we do that? :S
#6
LCD Wrote:Why not use inline ASM? Not tested:
Code:
sub setmemorypage(ta as ubyte)
   ASM
      di
      ld a,(ix+5)
      and 7
      or 8
      ld bc,32765
      out (c),a
      ld (23388),a
      ei
   END ASM
end sub

This is a perfect case for FASTCALL Tongue
Code:
sub FASTCALL setmemorypage(ta as ubyte)
   ASM
      di
      ; ld a,(ix+5) ; Not needed already in A
      and 7
      or 8
      ld bc,32765
      out (c),a
      ld (23388),a
      ei
   END ASM
end sub
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)