| Welcome, Guest |
You have to register before you can post on our site.
|
| Online Users |
There are currently 166 online users. » 0 Member(s) | 164 Guest(s) Baidu, Google
|
| Latest Threads |
Old zxbasic game errors
Forum: Help & Support
Last Post: boriel
Yesterday, 11:52 AM
» Replies: 7
» Views: 138
|
Error: Undefined GLOBAL l...
Forum: Help & Support
Last Post: ardentcrest
2025-11-04, 05:46 PM
» Replies: 3
» Views: 106
|
A Fast(er) Plot Routine f...
Forum: How-To & Tutorials
Last Post: tubz74
2025-10-30, 03:16 PM
» Replies: 2
» Views: 159
|
Hall of Fame - Include fo...
Forum: How-To & Tutorials
Last Post: tubz74
2025-10-28, 03:48 PM
» Replies: 0
» Views: 91
|
[SOLVED] Array layout bug...
Forum: Bug Reports
Last Post: Zoran
2025-10-25, 05:48 PM
» Replies: 2
» Views: 217
|
3DOS Commands?
Forum: Help & Support
Last Post: boriel
2025-10-06, 02:54 PM
» Replies: 3
» Views: 380
|
How to open fuse as an ex...
Forum: How-To & Tutorials
Last Post: zedex82
2025-10-05, 07:36 PM
» Replies: 2
» Views: 280
|
CLS/Fade out ASM Sub-rout...
Forum: How-To & Tutorials
Last Post: tubz74
2025-10-05, 03:39 PM
» Replies: 2
» Views: 271
|
ZX Basic Studio Bugs
Forum: Bug Reports
Last Post: Duefectu
2025-09-23, 04:07 PM
» Replies: 5
» Views: 1,081
|
Printing with FZX
Forum: Help & Support
Last Post: boriel
2025-07-17, 10:08 PM
» Replies: 1
» Views: 1,965
|
|
|
| What is the reserved data at $FF18 - $FFFF? |
|
Posted by: JMcGibbitts - 2019-06-16, 03:42 AM - Forum: Help & Support
- Replies (1)
|
 |
Hi.
I see data from address $FF18 (65304) - $FFFF. 231 bytes. It seems to start with F3 0D CE 0B E3 50 CE 0B... I have not seen it change size or start address across a few programs.
What is this data? Does it remain constant / static?
Provided I keep my main program code < $C000 and I copy this reserved data from $FF18, into all 128K banks 1-7, will I be free to use 128K paging as I choose, loading data and / or binary code into each page at specific addresses?
Will the program need this reserved data in the other 128K pages or is it maybe only used during program initialisation?
Thanks!
|
|
|
| Including / compiling code to different addresses |
|
Posted by: JMcGibbitts - 2019-06-08, 09:14 PM - Forum: Help & Support
- Replies (1)
|
 |
Hi there,
I'm in need of some advice with loading code to specific addresses.
1. A way to include a ZXBC basic file - during compilation - at a specific address. Something like this...
#INCLUDE "font.bas" ' load font relevant code to 24576
#INCLUDE "setup.bas" ' load program setup code to 24576 + compiled size of font.bas
#INCLUDE "graphicscode.bas", 38000 ' load graphics code and variables direct to address 38000.
This would see non-speed critical #INCLUDE code (and variables) first compiled to the program's ORG address (24576) and code (and variables) that must run in uncontended memory space - placed at the specified address.
2. How to directly include a binary blob to a specific address, without the use of labels and memmove, memcopy, zx7 unpack, etc. Something like this...
ASM
INCBIN "graphics.bin", 45000
END ASM
Thanks
|
|
|
| esxDos file open for write |
|
Posted by: nihirash - 2019-05-10, 06:55 PM - Forum: Help & Support
- Replies (2)
|
 |
Hello!
I'm trying make scl2trd tool for esxDos.
I did:
Code: InputStream = ESXDosOpen(InputFile$ + ".SCL", EDOS_FMODE_READ)
if (InputStream = -1) then
print "Failed to open file"
ESXDosClose(InputStream)
stop
end if
VerifyScl(InputStream)
' Creating TRD-file where it will be written
OutputStream = ESXDosOpen(InputFile$ + ".TRD", EDOS_FMODE_WRITE | EDOS_FMODE_CREATE_AL)
print "IS: "; InputStream
print "OS: "; OutputSream
InputStream are defined and I can read data from it. But output stream always equals zero and when I try to write something in it 0 - there return 65536 value(I think this is -1 - error code).
But, file was created! It's empty, but exists on sd card.
I'm tested it only via ZEsarUX emulator with ZX-Uno emulated.
Does anybody know where may be issue?
|
|
|
| Is possible to do this? |
|
Posted by: maeloterkim - 2019-04-30, 10:35 PM - Forum: Help & Support
- Replies (4)
|
 |
Hi : ) I want to do something like this
iniSuperSub:
SUB mySuperSub()
....
...
....
END SUB
endSuperSub:
SUB otherSub()
ASM
defs 6144-(@endSuperSub - @iniSuperSub),0
END ASM
END SUB
The compiler says -> Error: illegal preprocessor character '@'
I want to do in assembler -> defs (6144 - size mySuperSub ), 0
There is some way to do something like this?
Thanks
|
|
|
| v1.8.9 bright 8 does not work (*solved*) |
|
Posted by: Eqx - 2019-04-14, 10:52 PM - Forum: Bug Reports
- Replies (6)
|
 |
Hello Boriel,
I found a problem wih bright 8
I'm coding some routines for a game and I need use bright 8 to draw four lines on a square with attributes: ink 2 and bright 1
I set paper 8, ink 8 and bright 8 to draw lines in this zone but zxbasic changes the brightness to zero and seems doesn't works.
Thanks
Code: ink 2: bright 1
plot 117,154:
draw 0,-8: draw 1,0: draw 0,-5: draw -1,0: draw 0,-8: draw 8,0: draw 0,1: draw 5,0: draw 0,-1: draw 8,0: draw 0,8:
draw -1,0: draw 0,5: draw 1,0: draw 0,8: draw -8,0: draw 0,-1: draw -5,0: draw 0,1: draw -8,0
do
.....
if IN 32766 = 190 go sub fire
print paper 6;over 1; INK 0;AT 5,15;" ";AT 6,15;" "
loop
fire:
ink 8: paper 8: bright 8: over 1
for n=1 TO 2
plot 0,191:draw 126,-47
plot 255,191:draw -126,-47
plot 80,75: draw 48,69
plot 175,75:draw -48,69
next n
over 0
return
|
|
|
| Error "4 Out of memory, 0:1" |
|
Posted by: LukeBord1 - 2019-04-01, 11:32 AM - Forum: Help & Support
- Replies (6)
|
 |
Hi to all,
I've completed a program which I'd like to fit into a 16K Spectrum using the lastest 1.8.9 ZXB version. After a long play, the program crashes returing an annoying "4 Out of memory, 0:1", this happens in 48K mode too.
I incuded a couple of libraries: attr.bas and screen.bas, got no string variables (all the strings are included directly in PRINT commands), so i set a low value for the heap: --heap=256.
The program starts at --org=24000 and the generated memory_map.txt file says that the heap starts at "7337: .ZXBASIC_MEM_HEAP" (29495).
The rest of my custom machine code starts at 30.000 and ends at 32767... so all seems at the right place!
Any idea about the cause of the damned crash, which happens after some minutes of normal and working play?! It seems something like an accumulation of data in memory which goes out of bounds, needing some kind of reset :-(
|
|
|
|