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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 273
» Latest member: mindlin
» Forum threads: 1,085
» Forum posts: 6,486

Full Statistics

Online Users
There are currently 36 online users.
» 0 Member(s) | 35 Guest(s)
Applebot

Latest Threads
location of heap manageme...
Forum: Help & Support
Last Post: boriel
2026-03-07, 12:13 AM
» Replies: 1
» Views: 212
non-paged supervisor code...
Forum: Help & Support
Last Post: sdo303
2026-02-20, 06:38 PM
» Replies: 8
» Views: 688
How to open fuse as an ex...
Forum: How-To & Tutorials
Last Post: Duefectu
2026-02-09, 01:52 PM
» Replies: 3
» Views: 1,062
Old zxbasic game errors
Forum: Help & Support
Last Post: boriel
2025-11-09, 11:52 AM
» Replies: 7
» Views: 1,671
Error: Undefined GLOBAL l...
Forum: Help & Support
Last Post: ardentcrest
2025-11-04, 05:46 PM
» Replies: 3
» Views: 808
A Fast(er) Plot Routine f...
Forum: How-To & Tutorials
Last Post: tubz74
2025-10-30, 03:16 PM
» Replies: 2
» Views: 928
Hall of Fame - Include fo...
Forum: How-To & Tutorials
Last Post: tubz74
2025-10-28, 03:48 PM
» Replies: 0
» Views: 473
[SOLVED] Array layout bug...
Forum: Bug Reports
Last Post: Zoran
2025-10-25, 05:48 PM
» Replies: 2
» Views: 942
3DOS Commands?
Forum: Help & Support
Last Post: boriel
2025-10-06, 02:54 PM
» Replies: 3
» Views: 1,105
CLS/Fade out ASM Sub-rout...
Forum: How-To & Tutorials
Last Post: tubz74
2025-10-05, 03:39 PM
» Replies: 2
» Views: 835

 
  a proposal for an icon
Posted by: nitrofurano - 2012-09-20, 02:15 PM - Forum: Wishlist - Replies (2)

Boriel asked me to ask you all here, and i think it's not so offtopic (i don't know where else to ask it, since it's not a technical question)

as far as we may need to create groups about zxbasic-compiler, like at identi.ca, twitter, facebook, create a favicon for this project, etc. - maybe we need a icon/logomark for this project, for a better/easier visual identification

the idea is, since it is becoming multitarget (besides zx-spectrum only), and the essential would be making it targeting the processor itself, and since these processors are from around 70's and 80's, i used a colour palette very used on 70's (and some computers from that time, like from Atari and Commodore uses this palette as well), and the cube as the most used to represent a basic compiler-interpreter, and the simplicity because how simple is to use a tool like zxbasic-compiler - what do you all think?

the final version is this one:
[Image: zxbasiccompilericonc.png]

Print this item

  6502.py , 6809.py, 68000.py, etc.
Posted by: nitrofurano - 2012-09-19, 12:47 PM - Forum: Wishlist - Replies (3)

Since z80.py is the essential part of zxbasic-compiler that is used for reference when compiling the resulting .asm into binary, would be a good idea if we start to create similar code for 6502, 6809, 68000, etc., for expanding zxbasic-compiler to other 8bit/16bit platforms? would be this a good start?

Print this item

  about to start something to pacman-namco (arcade machine)
Posted by: nitrofurano - 2012-09-17, 05:17 PM - Forum: Wishlist - Replies (5)

I were starting to create files with random or hex-edited content similar to pacman.zip (mame), and also using the information from - <!-- m --><a class="postlink" href="http://www.ascotti.org/programming/pie/hardware.htm">http://www.ascotti.org/programming/pie/hardware.htm</a><!-- m --> - and i'm starting to know how this machine works (but i didn't start to code anything yet on zxbasic-compiler for that)

(overally, pacman.6e , *.6f, *.6h and *.6j are 4 4kb files for the program (a 16kb limit splitted into 4), pacman.5e is the character set (4kb), pacman.5f is the sprite set (4kb), 82s123.7f the palette (32 bytes - it's from a colourspace similar used on msx2-screen8 or UzeBox ), and 82s126.4a the clut (how the palette is arranged in groups of 4 colours - 256 bytes) - and i think 82s126.1m and *.3m are related to sound (256 bytes each) )

This machine seems to be not that plenty of ram memory (it's an arcade machine from 1980), around 4kb at most, which 2k is for displaying patterns (and the bitmaps (background patterns (8x8 characters), sprites (16x16) ) are stored in 8kb of rom somewhere else)

So, it seems that almost 2k of free ram makes it difficult to deal with the stack point, isn't it? and anyway, must we set that into a specific area, like 0x07EF, before the code starts? how much ram much we count with like on a regular use of functions and routines, and which care must we have?

Print this item

  POKE ULONG (*solved*)
Posted by: LCD - 2012-09-15, 07:03 PM - Forum: Bug Reports - Replies (5)

Hi Boriel,

Code:
poke Uinteger adr,peek(Uinteger,adr+128)
poke Uinteger adr+2,peek(Uinteger,adr+130)
works, it should do the same as
Code:
poke Ulong adr+(a<<5),peek(Ulong,adr+128)
should copy 4 bytes, but the first 2 bytes are not correct.

Print this item

  Not sure what's going on here
Posted by: britlion - 2012-09-13, 05:35 PM - Forum: Help & Support - Replies (3)

My alien breeder program seems to lock up, on pass two through the data - on fight 27, too.

Not sure if this is a compiler error, or my messing up - though adding one to a dimensioned variable (the line it seems to stop on) shouldn't be too stressful.

Locks up on this bit:

Code:
print at 21,16;2
        alienRankings(i+1,SCORE)=alienRankings(i+1,SCORE)+1
    END IF
    print at 21,17,"+"

It prints the 2, and doesn't print the "+".

What I don't understand is why it locks up on the 3rd loop round? There's nothing different there, which is why I suspect there's a compiler error.



Attached Files
.zip   AlienBreeder.zip (Size: 24.42 KB / Downloads: 1180)
Print this item

  DEFAULT Type
Posted by: LCD - 2012-09-04, 07:55 AM - Forum: Wishlist - Replies (6)

How about a addition?
Usually the variable type is allways float by default, and you can change the type of variables using DIM variable AS Type. Would it be possible to change the default type from float to different type (except String), using DEFAULT directive. E.g. DEFAULT UINTEGER will change the type of all uninitialised variables from Float to Uinteger.

Print this item

  mc1000: string processing not working fine as on zxspectrum
Posted by: nitrofurano - 2012-09-01, 08:52 PM - Forum: Bug Reports - No Replies

during the process of using zxbasic-compiler for creating stuff for mc1000/gem1000/charlemagne, besides having problem with rnd, i'm also having problems when dealing with string processing (like using libraries for drawing text)

<!-- m --><a class="postlink" href="http://dl.dropbox.com/u/795795/retrocoding/mc1000/_solitario_mc1000_20120830161950.zip">http://dl.dropbox.com/u/795795/retrocod ... 161950.zip</a><!-- m -->

there you have the .wav which opens on Mess emulator ('mess mc1000' or 'mess mc1000 -ramsize 48k' - scrolllock+insert for accessing tab - enter 'tload' - and select and play the .wav file in the tab options - it takes almost 2 minutes loading ) - there is the source code as well

i don't know if the string commands are related to zx-spectrum rom routines, stack issues, or something else

btw, is there some other method i can help to test string processing, like snippets? i think this issue is somehow concerning, since the zxbasic-compiler project is being extended to other targets like this one, sms, and some others in embrionary stage (like msx, amstrad-cpc, mattel-aquarius, enterprise, and sam-coupé)

if more people here is trying to use zxbasic-compiler for creating binary or assembly stuff targeting other hardware than zx-spectrum, please share your feedback - and what and how code must be tested, and issues fixed or avoided

Print this item

  Version 1.2.9 Released!
Posted by: boriel - 2012-08-26, 09:46 PM - Forum: ZX Basic Compiler - Replies (1)

This version is (IMHO) tested enough, and so, released as Stable.
You can download it here

NOTE: This is revision 1.2.9 s915
If you already have it, you don't need to download it again.

Changelog since 1.2.8: (There are many, so only a few has been remarked!)

  • ! Fixed a serious bug with ALL integer (signed/unsigned) operands which were not working correctly under some circumstances.
  • ! Fixed some bugs which made the compiler to crash when a syntax error is found.
  • ! Fixed a bug in ALIGN (assembler)
  • * ZXBasic python version is now PyPy compatible.
  • * RND is now MUCH faster and produces better random patterns (thanks to Britlion)
  • * Compiler speed is now almost 100% faster!
  • * Some code optimization
  • + Added a recursive pattern fill library with an example (thanks to Britlion)
  • ! Fixed some bugs in the preprocessor which prevented some chars to be written
  • ! Fixed a bug with PRINT and comma position
  • ! Fixed a bug in PEEK which was related to the backend
  • ! Fixed more than 50 other minor bugs in both the compiler and the assmebler
  • * THEN keyword is now optional in IF statements
... and much much more

Print this item

  asm/endasm missing equ?
Posted by: nitrofurano - 2012-08-21, 12:52 AM - Forum: Help & Support - Replies (2)

At <!-- m --><a class="postlink" href="https://www.facebook.com/groups/mc1000/">https://www.facebook.com/groups/mc1000/</a><!-- m -->, Emerson Costa (ensjo) is helping me a lot on the mc1000 version of zxbasic-compiler , but as soon he sent to me a library in asm with equ, zxbasic-compiler didn't recognize it.

Is that planned a support for equ, and how simple/possible is to add this? (it seems to be like associating variable names to values inside the asm code, just like variables on the basic code?)

Print this item

  is THEN necessary?
Posted by: slenkar - 2012-08-18, 11:50 PM - Forum: Wishlist - Replies (6)

every time I do an IF statement I always forget THEN, can it be made optional?

Print this item