The following warnings occurred:
Warning [2] Undefined array key "attachments" - Line: 20 - File: portal.php(680) : eval()'d code PHP 8.2.31 (Linux)
File Line Function
/inc/class_error.php 157 errorHandler->error
/portal.php(680) : eval()'d code 20 errorHandler->error_callback
/portal.php 680 eval
Warning [2] Undefined array key "attachments" - Line: 20 - File: portal.php(680) : eval()'d code PHP 8.2.31 (Linux)
File Line Function
/inc/class_error.php 157 errorHandler->error
/portal.php(680) : eval()'d code 20 errorHandler->error_callback
/portal.php 680 eval
Warning [2] Undefined array key "attachments" - Line: 20 - File: portal.php(680) : eval()'d code PHP 8.2.31 (Linux)
File Line Function
/inc/class_error.php 157 errorHandler->error
/portal.php(680) : eval()'d code 20 errorHandler->error_callback
/portal.php 680 eval
Warning [2] Undefined array key "attachments" - Line: 20 - File: portal.php(680) : eval()'d code PHP 8.2.31 (Linux)
File Line Function
/inc/class_error.php 157 errorHandler->error
/portal.php(680) : eval()'d code 20 errorHandler->error_callback
/portal.php 680 eval
Warning [2] Undefined array key "attachments" - Line: 20 - File: portal.php(680) : eval()'d code PHP 8.2.31 (Linux)
File Line Function
/inc/class_error.php 157 errorHandler->error
/portal.php(680) : eval()'d code 20 errorHandler->error_callback
/portal.php 680 eval
Warning [2] Undefined array key "attachments" - Line: 20 - File: portal.php(680) : eval()'d code PHP 8.2.31 (Linux)
File Line Function
/inc/class_error.php 157 errorHandler->error
/portal.php(680) : eval()'d code 20 errorHandler->error_callback
/portal.php 680 eval
Warning [2] Undefined array key "attachments" - Line: 20 - File: portal.php(680) : eval()'d code PHP 8.2.31 (Linux)
File Line Function
/inc/class_error.php 157 errorHandler->error
/portal.php(680) : eval()'d code 20 errorHandler->error_callback
/portal.php 680 eval
Warning [2] Undefined array key "attachments" - Line: 20 - File: portal.php(680) : eval()'d code PHP 8.2.31 (Linux)
File Line Function
/inc/class_error.php 157 errorHandler->error
/portal.php(680) : eval()'d code 20 errorHandler->error_callback
/portal.php 680 eval
Warning [2] Undefined array key "attachments" - Line: 20 - File: portal.php(680) : eval()'d code PHP 8.2.31 (Linux)
File Line Function
/inc/class_error.php 157 errorHandler->error
/portal.php(680) : eval()'d code 20 errorHandler->error_callback
/portal.php 680 eval
Warning [2] Undefined array key "attachments" - Line: 20 - File: portal.php(680) : eval()'d code PHP 8.2.31 (Linux)
File Line Function
/inc/class_error.php 157 errorHandler->error
/portal.php(680) : eval()'d code 20 errorHandler->error_callback
/portal.php 680 eval




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 139 online users.
» 0 Member(s) | 138 Guest(s)
Bing

Latest Threads
New video Couse / Nuevo c...
Forum: News
Last Post: Duefectu
2026-04-29, 11:02 PM
» Replies: 0
» Views: 212
location of heap manageme...
Forum: Help & Support
Last Post: boriel
2026-03-07, 12:13 AM
» Replies: 1
» Views: 485
non-paged supervisor code...
Forum: Help & Support
Last Post: sdo303
2026-02-20, 06:38 PM
» Replies: 8
» Views: 1,297
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,076
Error: Undefined GLOBAL l...
Forum: Help & Support
Last Post: ardentcrest
2025-11-04, 05:46 PM
» Replies: 3
» Views: 1,080
A Fast(er) Plot Routine f...
Forum: How-To & Tutorials
Last Post: tubz74
2025-10-30, 03:16 PM
» Replies: 2
» Views: 1,179
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,217
3DOS Commands?
Forum: Help & Support
Last Post: boriel
2025-10-06, 02:54 PM
» Replies: 3
» Views: 1,380

 
  SamCoupé palette support
Posted by: nitrofurano - 2011-12-21, 04:26 AM - Forum: Library - Replies (3)

Some people here may know that zx-spectrum stuff can run on sam coupé machines, and these stuff can write on its palette as well.

This is based on the library i added to support ULAplus, and did the enough changes for the SamCoupé - i didn't test it yet.

There are differences - while ULAplus has 64 palette colours from 256, SamCoupé has 16 from 128, and arranged in a different way. And anyway, SamCoupé palette seems to be simpler to use, since there are no need for tricky subroutines like "ulaplusattr(ikv as ubyte,pav as ubyte)"

Besides the ULAplus version, i don't know or i have no way to get the palette values back, or test if the machine uses SamCoupé palette

I didn't test this code yet - SimCoupé seems to be a good emulator for testing it:

library/samcoupepalette.bas

Code:
dim tmpv as uinteger sub samcoupepalette(clv as ubyte, vlv as ubyte): out (clv*256)bor 248,vlv:pause 1 end sub function samcoupehexcolour(hxcv as uinteger): tmpv=(hxcv band 4)/4 tmpv=tmpv bor ((hxcv band 64)/16) tmpv=tmpv bor ((hxcv band 8)*2) tmpv=tmpv bor ((hxcv band 128)/2) tmpv=tmpv bor ((hxcv band 32)/4) hxcv=int(hxcv/256) tmpv=tmpv bor ((hxcv band 64)/16) tmpv=tmpv bor ((hxcv band 8)*2) return tmpv end function

the information on the code above is based on the reply i got from Velesoft at <!-- m --><a class="postlink" href="http://www.worldofspectrum.org/forums/showthread.php?p=583022#post583022">http://www.worldofspectrum.org/forums/s ... post583022</a><!-- m -->

Print this item

  Used to compile? (*solved*)
Posted by: britlion - 2011-12-08, 03:08 AM - Forum: Bug Reports - Replies (7)

I think this used to work. Now it just gets a blank screen?

Based on HRPrintFast - as attached in the forum.

zxb --version
zxb 1.2.8-s758

<!-- m --><a class="postlink" href="http://dl.dropbox.com/u/4903664/HRPrintFast.zip">http://dl.dropbox.com/u/4903664/HRPrintFast.zip</a><!-- m -->

(I can't seem to attach this file to the forum either: Could not upload attachment to ./files/292_dbf5619d9a32ca38360a971b2a2970cd.)

Print this item

  scroll.bas
Posted by: britlion - 2011-12-07, 11:27 PM - Forum: Bug Reports - Replies (9)

Was thinking of doing some scroll routines. I see there are some useful ones in scroll.bas in the library.

However, there appears to be a left, right and another left in there - no up and down!

sub fastcall ScrollRight
sub fastcall ScrollLeft
sub fastcall ScrollLeft

two also begin a bit strangely - loading the byte at (screenaddress) twice?

Print this item

  Window Scroll Up
Posted by: britlion - 2011-12-07, 08:20 PM - Forum: How-To & Tutorials - No Replies

For what it's worth, I added a window up scroll routine to the library. Allows text areas to be scrolled up as they fill up, without messing up other areas of the screen.

<!-- m --><a class="postlink" href="http://www.boriel.com/wiki/en/index.php/ZX_BASIC:WindowScrollUp">http://www.boriel.com/wiki/en/index.php ... owScrollUp</a><!-- m -->

Print this item

  Random Numbers
Posted by: britlion - 2011-12-07, 02: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 - 2011-12-07, 12:03 PM - 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 - 2011-12-02, 04: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 - 2011-11-21, 06: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 - 2011-11-18, 12:31 AM - 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 - 2011-11-10, 04: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