Forum
Maximal size for a compiled program - Printable Version

+- Forum (https://www.boriel.com/forum)
+-- Forum: Compilers and Computer Languages (https://www.boriel.com/forum/forumdisplay.php?fid=12)
+--- Forum: ZX Basic Compiler (https://www.boriel.com/forum/forumdisplay.php?fid=11)
+---- Forum: Bug Reports (https://www.boriel.com/forum/forumdisplay.php?fid=15)
+---- Thread: Maximal size for a compiled program (/showthread.php?tid=905)

Pages: 1 2


RE: Maximal size for a compiled program - Week of the agents - 07-09-2020

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.


RE: Maximal size for a compiled program - RandomiserUsr - 04-17-2021

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


RE: Maximal size for a compiled program - RandomiserUsr - 05-02-2021

(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