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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 260
» Latest member: RichardFluof
» Forum threads: 1,074
» Forum posts: 6,434

Full Statistics

Online Users
There are currently 224 online users.
» 0 Member(s) | 220 Guest(s)
Applebot, Bing, Google, Yandex

Latest Threads
.tap file code not execut...
Forum: Help & Support
Last Post: Zoran
04-28-2025, 10:59 AM
» Replies: 4
» Views: 342
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,604
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: 336
Using constants not allow...
Forum: Bug Reports
Last Post: baltasarq
03-19-2025, 10:00 PM
» Replies: 8
» Views: 1,066
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: 419
ZXodus][Engine
Forum: ZX Basic Compiler
Last Post: boriel
02-19-2025, 11:43 PM
» Replies: 69
» Views: 213,815

 
  Random Numbers
Posted by: britlion - 12-07-2011, 01:46 PM - Forum: Help & Support - Replies (7)

Boriel, I know the compiler's pseudorandom number generator is better than the one in the ROM.

Seen this:

<!-- m --><a class="postlink" href="http://www.worldofspectrum.org/forums/showthread.php?t=23070">http://www.worldofspectrum.org/forums/s ... hp?t=23070</a><!-- m -->

?

If it's smaller, faster or better, you might want to consider Smile

For posterity, an 8 bit result with 32 bit seed that passes diehard test for 32 bit entropy:

Code:
rnd     ld  hl,0xA280   ; xz -> yw
        ld  de,0xC0DE   ; yw -> zt
        ld  (rnd+1),de  ; x = y, z = w
        ld  a,e         ; w = w ^ ( w << 3 )
        add a,a
        add a,a
        add a,a
        xor e
        ld  e,a
        ld  a,h         ; t = x ^ (x << 1)
        add a,a
        xor h
        ld  d,a
        rra             ; t = t ^ (t >> 1) ^ w
        xor d
        xor e
        ld  h,l         ; y = z
        ld  l,a         ; w = t
        ld  (rnd+4),hl
        ret

Print this item

  How to read print flags?
Posted by: britlion - 12-07-2011, 11:03 AM - Forum: Help & Support - No Replies

Anyone got a reference for how to read current ink, paper bright flash and inverse from pflags?

How about bold and italics - where can I find the current status of those?

Print this item

  Function Overloading
Posted by: britlion - 12-02-2011, 03:02 PM - Forum: Wishlist - Replies (3)

It would be nice if overloading was supported - functions and subroutines of the same name with different parameters.

For example:

change(ubyte ink, ubyte paper) could change the attributes for the whole screen to a specific ink/paper value without clearing it.
change() sets them to the current permanent colours...
change (ubyte ink, ubyte paper, ubyte start_row, ubyte end_row) could change just part of the screen...

And so on and so forth.

Print this item

  Speccy Wars
Posted by: slenkar - 11-21-2011, 05:28 PM - Forum: Gallery - Replies (24)

[Image: z3mwg.jpg]

Its going to be a simple fun strategy game
dreading the AI code

Print this item

  Librarys corrections to do
Posted by: LCD - 11-17-2011, 11:31 PM - Forum: Documentation - Replies (2)

Hi Boriel, I currently make the ZXBC library helper for BorIDE and found some errors:
LCase.bas

Quote:----------------------------------------------------------------
' function LCase(s as String)
'
' Parameters:
' s: Input String
'
' Returns:
' A copy of S converted to UpperCase
' ----------------------------------------------------------------

It should be:
Quote:' Returns:
' A copy of S converted to LowerCase
Next what I do not understand: in Key Library you wrote about scancodes such as:
Quote:SC_ENTER or SC_SPACE
But the key definitions are more like:
Quote:KEYENTER or KEYSPACE
Other:
In the Scroll Lib the SUB for scrolling up and down is named in both cases ScrollLeft. And it is written scrolling by pyxel, which is wrong and should be called pixel (PIcture ELement).

Writing Docs for the Fourspriter will be a pain... But also the core commands await me.
FIY: I changed the help system. Now it can display a HTML-Page, which includes a newly designed BorIDE Logo and styled text.

Print this item

  speed of compilation
Posted by: slenkar - 11-10-2011, 03:11 PM - Forum: Core - Replies (17)

do you think the compilation of speccy games would go faster if the compiler was written in a faster language like java?

btw yacc is available in java

Print this item

  4spriter editor released
Posted by: slenkar - 11-09-2011, 07:50 PM - Forum: ZX Basic Compiler - Replies (11)

[Image: KMolW.jpg]
<!-- m --><a class="postlink" href="http://www.mediafire.com/?dbgt4hulg4129gl">http://www.mediafire.com/?dbgt4hulg4129gl</a><!-- m -->

press the spacebar to save and your sprites will be there in the same folder as the executable ready to cut and paste into your basic code

(the save is called .monkeystate)

EDIT - altered the colors to match speccy colors

Print this item

  Wiki Edition Login required
Posted by: boriel - 11-09-2011, 02:42 PM - Forum: ZX Basic Compiler - No Replies

From now on, and to avoid massive Spam in the Wiki, users must login into the wiki system using their User+Passwd of this forum.
Only editors can login (the Wiki es open and public readable already). If you want to update the wiki and cannot login, please, ask me for permissions! :roll:

Print this item

  need RGB values for speccy colours
Posted by: slenkar - 11-09-2011, 03:48 AM - Forum: Help & Support - Replies (5)

Im making a sprite creator for speccy, does anyone know the RGB values 0-255 for each spectrum color?

Print this item

  graphic library comparison
Posted by: slenkar - 11-08-2011, 07:15 PM - Forum: Library - Replies (4)

Which graphic library is good to use in different situations? and what advantages disadvantages do they have?

Print this item