Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
compiler error (*solved*)
#7
slenkar Wrote:works perfectly now, thanks :o

do you have a list of arguments that 'print' accepts?
the wiki page for 'print' hasnt been done yet
Ok, if you happen to use ZX Spectrum BASIC, PRINT works exactly as original PRINT except it's a different faster routine (not the one in the ROM, which is slower). It accepts AT, INK, PAPER, INVERSE, FLASH, BRIGHT, and OVER. Note INK 8 and PAPER 8 also work as expected. And unlike in ZX Basic, everything also affects PLOT,DRAW & CIRCLE routines.

OVER is extended as follows:
  • OVER 0: Print "as is", overwriting screen background
  • OVER 1: Print XORing with screen background (as original ZX Spectrum)
  • OVER 2: Print ORing with screen background
  • OVER 3: Print ANDing with screen background
Using 2 & 3 you can achive a "filmation" effect (Alien 8, knight lore, etc...), by PRINTing OVER 3 the UDG mask, and then PRINTing OVER 2 the UDG.

TAB and , (the COMMA) work as in the original PRINT. The End Of Line character (') must be replaced with CHR$(13), because ZX Basic uses ' as an alias of REM

Also there are BOLD and ITALIC.
Try:
Code:
PRINT BOLD 1; "HELLO "; BOLD 0; ITALIC 1; "WORLD"
If something does not work as expected here, please report (it might be a bug).
slenkar Wrote:check out my game!
<!-- m --><a class="postlink" href="http://www.mediafire.com/?71xtf8habqbcgdy">http://www.mediafire.com/?71xtf8habqbcgdy</a><!-- m -->
I tried, but when clicked a download, it shows an HTTP error??? Try uploading in this post? Can you? (I can give you permission if not).
Update:Ok, just downloaded! (not sure what happened before!). Hey! This looks promising! :-)
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)