Welcome, Guest |
You have to register before you can post on our site.
|
Online Users |
There are currently 177 online users. » 0 Member(s) | 174 Guest(s) Applebot, Bing, Google
|
Latest Threads |
.tap file code not execut...
Forum: Help & Support
Last Post: Zoran
04-28-2025, 10:59 AM
» Replies: 4
» Views: 345
|
Exit from more than one l...
Forum: Wishlist
Last Post: Duefectu
04-23-2025, 10:06 PM
» Replies: 3
» Views: 300
|
put small ASM programs li...
Forum: How-To & Tutorials
Last Post: Zoran
04-18-2025, 02:02 PM
» Replies: 6
» Views: 1,607
|
Creating +3 Menus - Loadi...
Forum: Help & Support
Last Post: merlinkv
04-16-2025, 02:08 PM
» Replies: 6
» Views: 557
|
Randomize not very random...
Forum: Help & Support
Last Post: Zoran
04-08-2025, 10:40 AM
» Replies: 4
» Views: 893
|
Scope rules
Forum: Bug Reports
Last Post: Zoran
04-04-2025, 09:46 AM
» Replies: 2
» Views: 339
|
Using constants not allow...
Forum: Bug Reports
Last Post: baltasarq
03-19-2025, 10:00 PM
» Replies: 8
» Views: 1,069
|
404 page not found
Forum: Documentation
Last Post: boriel
03-08-2025, 07:16 PM
» Replies: 5
» Views: 2,888
|
Spectrum keywords codes
Forum: Bug Reports
Last Post: boriel
03-08-2025, 11:00 AM
» Replies: 1
» Views: 421
|
ZXodus][Engine
Forum: ZX Basic Compiler
Last Post: boriel
02-19-2025, 11:43 PM
» Replies: 69
» Views: 213,817
|
|
|
Using ZX Basic to create ESXDOS dot commands |
Posted by: Uto - 07-16-2016, 12:18 PM - Forum: Help & Support
- Replies (5)
|
 |
Hello all,
I'm new to ZXBasic, but despite of that I've managed to properly build and application using it (<!-- m --><a class="postlink" href="https://github.com/Utodev/ZXCU">https://github.com/Utodev/ZXCU</a><!-- m -->). I've found ZXBasic and its extension a great help to build that application, so first of all, thank you for building this tool.
The application is a menu driven setup application for Zx-Uno spectrum clone, built for latest core avaliable so far. While providing this application as .tap file may be OK, I wanted to try to compile it so it is a ESXDOS dot command, that may be invoked just by .zxuc.
I have built small ESXDOS dot commands before (just proofs of concept), made in assembler, and all that I know, considering they are undocummented, is:
- They are raw machine code binary files, that is, if first instruction is RET the dot command does nothing but returning to prompt. There is no header.
- They start at 0x4000 (ORG 8192)
- They apparently have 8K maximum size (largest one included with ESXDOS, .snaload, takes almost thos 8K)
I have compiled my code using -S 8192 option, but when y run .zxuc ZXUno freezes. I have also tried to compile a very simple code, and do the same, and in that case it doesn't freeze, but it does nothing.
Compiling that code into a .hello command just returns with OK, without printing "Hello World"
I have decompiled what ZXBasic compiles and first instructions are what is expected, but it's way too complicated to debug furthermore.
I have also tried to reduce heap size with -H parameter, but nothing changes.
Any idea what may be wrong?
|
|
|
Exit code -1 cause found (SGN) |
Posted by: LCD - 07-13-2016, 04:55 PM - Forum: Bug Reports
- Replies (2)
|
 |
If I have a unsigned variable (e.g. UBYTE) and want a SGN of it, the compiler produces a warning that it can then be only 0 or 1, but the compiler exits with exit code -1. Should be the warning not mean, it can be compiled anyway?
I'm using version 1.4.0s1968.
|
|
|
Sprites & ATTR |
Posted by: jonesypeter - 06-26-2016, 08:13 PM - Forum: Help & Support
- Replies (2)
|
 |
Hi,
I'm quite new to ZX Basic, and just had a few questions:
Is the replacement for the Sinclair BASIC ATTR command attrAdress(x,y)?
Are there any linked sprite libraries that let you use Sprites (larger than 8*8) from BASIC? I did look at the Spanish Fourspriter tutorial, but Google translate is not great with technical translations. Is there an English Language tutorial, and are there any other libraries, without the need to use Assembler?
Thanks
|
|
|
One more optimizer bug (*solved*) |
Posted by: einar - 05-07-2016, 04:46 PM - Forum: Bug Reports
- Replies (7)
|
 |
File "test.bas":
Code: sub test()
asm
ld hl, 56469
ld de, 5
ld (hl), e
inc l
ld (hl), d
; ret
end asm
end sub
test()
Trying to compile it:
Code: >zxb.exe -t -O3 test.bas -o test.tap
Traceback (most recent call last):
File "zxb.py", line 348, in <module>
File "zxb.py", line 301, in main
File "optimizer.pyc", line 2290, in optimize
File "optimizer.pyc", line 1949, in optimize
File "optimizer.pyc", line 680, in op
File "optimizer.pyc", line 538, in inc
File "optimizer.pyc", line 432, in set
TypeError: unsupported operand type(s) for <<: 'NoneType' and 'int'
Compiling it without "-O3" works just fine.
|
|
|
|