Boriel Basic Forum
Maximal size for a compiled program - Printable Version

+- Boriel Basic Forum (https://forum.boriel.com)
+-- Forum: Compilers and Computer Languages (https://forum.boriel.com/forumdisplay.php?fid=12)
+--- Forum: ZX Basic Compiler (https://forum.boriel.com/forumdisplay.php?fid=11)
+---- Forum: Bug Reports (https://forum.boriel.com/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 - 2020-07-09

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 - 2021-04-17

(2020-07-06, 10: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 - 2021-05-02

(2020-07-09, 09: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