Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 274
» Latest member: zxspecticle
» Forum threads: 1,086
» Forum posts: 6,487

Full Statistics

Online Users
There are currently 212 online users.
» 0 Member(s) | 211 Guest(s)
Bing

Latest Threads
New video Couse / Nuevo c...
Forum: News
Last Post: Duefectu
2026-04-29, 11:02 PM
» Replies: 0
» Views: 210
location of heap manageme...
Forum: Help & Support
Last Post: boriel
2026-03-07, 12:13 AM
» Replies: 1
» Views: 483
non-paged supervisor code...
Forum: Help & Support
Last Post: sdo303
2026-02-20, 06:38 PM
» Replies: 8
» Views: 1,294
How to open fuse as an ex...
Forum: How-To & Tutorials
Last Post: Duefectu
2026-02-09, 01:52 PM
» Replies: 3
» Views: 1,389
Old zxbasic game errors
Forum: Help & Support
Last Post: boriel
2025-11-09, 11:52 AM
» Replies: 7
» Views: 2,074
Error: Undefined GLOBAL l...
Forum: Help & Support
Last Post: ardentcrest
2025-11-04, 05:46 PM
» Replies: 3
» Views: 1,078
A Fast(er) Plot Routine f...
Forum: How-To & Tutorials
Last Post: tubz74
2025-10-30, 03:16 PM
» Replies: 2
» Views: 1,177
Hall of Fame - Include fo...
Forum: How-To & Tutorials
Last Post: tubz74
2025-10-28, 03:48 PM
» Replies: 0
» Views: 630
[SOLVED] Array layout bug...
Forum: Bug Reports
Last Post: Zoran
2025-10-25, 05:48 PM
» Replies: 2
» Views: 1,215
3DOS Commands?
Forum: Help & Support
Last Post: boriel
2025-10-06, 02:54 PM
» Replies: 3
» Views: 1,378

 
  How redirect PRINT to the printer how makes LPRINT?
Posted by: maeloterkim - 2019-07-21, 04:47 PM - Forum: Help & Support - Replies (4)

How redirect PRINT to the printer? how makes LPRINT?

HI

Is possible redirect the output of the PRINT to the printer ?

Something like
PRINT #3; "This go to the printer"
that print on the printer

or something like
OPEN #4, "p"
that redirects the channel four to the printer and after this we can do

PRINT #4; "This go to the printer"

Is there some "easy way" to do that with the ZX basic ?

Maybe there are some library that makes the LPRINT of the ZX spectrum

Thanks

Print this item

  Debugging
Posted by: pinback - 2019-07-21, 11:50 AM - Forum: Help & Support - Replies (7)

Hi,

I have proved an old program from the ZX Spectrum Basic to Boriel's Basic.
Some 700 lines of code.
The program can compile now and it is running on a Spectrum emulator.

However I get an error "3 Subscript wrong, 30:1"
wich is a very generic error coming from the "RANDOMIZE USR 32768".

Is there any way to tell where the error occurred in my source file?

Here is what I used for compilation:

Code:
python3 zxb.py -taB program.bas --array-base 1 --string-base 1 --debug-array --debug-memory

Print this item

  Is posible hide variables unused message on some functions?
Posted by: maeloterkim - 2019-06-26, 02:07 PM - Forum: Help & Support - Replies (1)

HI

I know that i have variables unused on assembler functions

where I use assembler only and i grab the values for example like this LD E, (ix+8)

Is there any pragma or something to not show this on the compiler message?

because if i have a lot of assembler functions there are a lot of messy output on the compiler

with message like this : warning: Parameter 'parameterName' is never used

Can i hide this type of message when i know that is "unused" in a assembler function?

If i can hide this type of message is more easy to develop

i don't know something like

#thisFunction dontShowThisTypeOfMessage

I don't know if i explained myself

Thanks

Print this item

  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!

Print this item

  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

Print this item

  Is there any way to create a DIM with variables?
Posted by: maeloterkim - 2019-06-04, 06:14 PM - Forum: Help & Support - Replies (3)

Hi

I'm trying this

DIM variableName( 20 * ( myVariable + 1 ) ) AS UBYTE

but the compiler says : "Array bounds muts be constants"

Is there any way to create a DIM with variables?

With a Basic variable?

Thanks

Print this item

  If I do a FUNCTION or SUB When is good to make it fastcall ?
Posted by: maeloterkim - 2019-06-01, 04:24 PM - Forum: Help & Support - Replies (2)

Hi

Well... this is the question Smile

If I do a FUNCTION or SUB When is good to make it fastcall ?

how can i know if ist's better as a fastcall or not?

How can i know that?

Thanks

Print this item

  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?

Print this item

  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

Print this item

  ZX ZOO A full ZOO inside 48 K at 3.5Mhz :)
Posted by: maeloterkim - 2019-04-27, 01:48 PM - Forum: Gallery - Replies (1)

ZX ZOO A full ZOO inside 48 K at 3.5Mhz Smile

Made with ZX Basic Compiled. Only tested on Emulators

included here -> zxZOO(48K).rar

If someone can try it in a real zx spectrum hardware and comment here if it works Smile

Enjoy the zoo Smile

DEMO VIDEO here -> https://www.facebook.com/millionthanksbo...212159304/



Attached Files
.rar   zxZOO(48K).rar (Size: 31.03 KB / Downloads: 29)
Print this item