Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Maximal size for a compiled program
#16
Learn how to use RAM banks in ZX Spectrum 128k. Then compile data blocks as different taps and make a loader. I'm using ZXBlockEditor for gluing blocks in one tap. But now I use assembler.
Reply
#17
(07-06-2020, 09:10 PM)boriel Wrote: Not yet, sorry. I'm working on 128K memory pagination to see how can I get easy access to that memory, but it's not that easy for a compiled program Sad

Hi Boriel

How is that going?
Reply
#18
(07-09-2020, 08:51 PM)Week of the agents Wrote: Learn how to use RAM banks in ZX Spectrum 128k. Then compile data blocks as different taps and make a loader. I'm using ZXBlockEditor for gluing blocks in one tap. But now I use assembler.

I am having issues on the RAM banks.  I try to use bank 4 but when I switch it to 4 the program crashes.

Code:
sub FASTCALL setmemorypage4()
ASM
 LD      A,(0x5b5c)     
 AND    0xf8
 OR      4              ; Bank 4
 LD      BC,0x7ffd
 DI
 LD      (0x5b5c),A
 OUT    (C),A
 EI
END ASM
end sub

I have another one for setmemorypage0() which I call after working on page 4 but never gets to that point.
I do think its a mem clash but hard to track down.

thanks
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)