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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 264
» Latest member: ChrisEmask
» Forum threads: 1,075
» Forum posts: 6,435

Full Statistics

Online Users
There are currently 177 online users.
» 0 Member(s) | 175 Guest(s)
Bing, Google

Latest Threads
Strange Happenings
Forum: Bug Reports
Last Post: zedex82
Yesterday, 09:05 AM
» Replies: 0
» Views: 14
.tap file code not execut...
Forum: Help & Support
Last Post: Zoran
04-28-2025, 10:59 AM
» Replies: 4
» Views: 381
Exit from more than one l...
Forum: Wishlist
Last Post: Duefectu
04-23-2025, 10:06 PM
» Replies: 3
» Views: 318
put small ASM programs li...
Forum: How-To & Tutorials
Last Post: Zoran
04-18-2025, 02:02 PM
» Replies: 6
» Views: 1,638
Creating +3 Menus - Loadi...
Forum: Help & Support
Last Post: merlinkv
04-16-2025, 02:08 PM
» Replies: 6
» Views: 579
Randomize not very random...
Forum: Help & Support
Last Post: Zoran
04-08-2025, 10:40 AM
» Replies: 4
» Views: 917
Scope rules
Forum: Bug Reports
Last Post: Zoran
04-04-2025, 09:46 AM
» Replies: 2
» Views: 363
Using constants not allow...
Forum: Bug Reports
Last Post: baltasarq
03-19-2025, 10:00 PM
» Replies: 8
» Views: 1,096
404 page not found
Forum: Documentation
Last Post: boriel
03-08-2025, 07:16 PM
» Replies: 5
» Views: 2,904
Spectrum keywords codes
Forum: Bug Reports
Last Post: boriel
03-08-2025, 11:00 AM
» Replies: 1
» Views: 435

 
  about to start something to pacman-namco (arcade machine)
Posted by: nitrofurano - 09-17-2012, 04: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 - 09-15-2012, 06: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 - 09-13-2012, 04: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: 851)
Print this item

  DEFAULT Type
Posted by: LCD - 09-04-2012, 06: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 - 09-01-2012, 07: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 - 08-26-2012, 08: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 - 08-20-2012, 11:52 PM - 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 - 08-18-2012, 10: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

  mc1000/gem1000 version of zxbasic-compiler is on the way! :)
Posted by: nitrofurano - 08-15-2012, 06:22 PM - Forum: Wishlist - Replies (5)

well, mc1000/gem1000 is a pretty rare 8bit hardware, but its zxbasic-compiler version is on the way:
<!-- m --><a class="postlink" href="https://www.facebook.com/groups/mc1000/">https://www.facebook.com/groups/mc1000/</a><!-- m -->
(messages are in portuguese, but people could use translators for that, and since the conversation is mostly technical there, it seems to be not that hard to understand)

btw, some information of it is being collected here: <!-- m --><a class="postlink" href="http://www.boriel.com/wiki/en/index.php/ZX_BASIC:GEM-1000">http://www.boriel.com/wiki/en/index.php ... C:GEM-1000</a><!-- m -->

(an interesting fact of this machine is it uses the same display processor as Dragon32/Coco2 (a good start for these machines for when a 6809/6502 version of zxbasic-compiler appears) , the same sound processor as msx, nes and sms, and the same z80 processor as zx-spectrum and etc.! Smile )

Print this item

  VADE RETRO
Posted by: JBGV - 08-15-2012, 07:18 AM - Forum: Gallery - Replies (15)

Hello again,

I Finish this game not long ago, it was actually a kind of test, I continue to learn ASM and I wanted (even once) to move an object in "HR" :roll: .

I hope you like it.

Regards and happy holidays ! Big Grin

Spanish - English and Code:
.



Attached Files
.rar   VADERETRO.rar (Size: 116.11 KB / Downloads: 171)
Print this item