-
Lesser used BASIC commandsAre there any interesting articles or books that explore some of the lesser used BASIC commands/functions e.g. DEF FN, IN, OUT etc? The Spectrum BAS…
... thought the poor relation of ATTR and POINT was SCREEN$. I ... -
Lesser used BASIC commandsAre there any interesting articles or books that explore some of the lesser used BASIC commands/functions e.g. DEF FN, IN, OUT etc? The Spectrum BAS…
... to add colour and use ATTR or a well chosen POINT ... -
The Sing-clair ProjectFollowing on in a way from [url=http://www.worldofspectrum.org/forums/showthread.php?t=11800]this[/url] thread, I have had an idea. How about if we …
... screen
little bit of ATTR data hitching a ride... and ... -
Sprite adviceHello. So, I'm slowly getting to grips with Z80 assembly - currently equal parts frustration and enjoyment. Now looking for some advice to help shift…
... 't work!. The sprite position calculation part seems to be fine ... -
Background image with SP1 and Z88DKWhat is the prefered way to place an entire (or very large) image in the background when using SP1? Should I convert it to a long (32*24=768 ) list o…
... current attribute mask
uchar attr; // +6 current attribute
struct ... -
Background image with SP1 and Z88DKWhat is the prefered way to place an entire (or very large) image in the background when using SP1? Should I convert it to a long (32*24=768 ) list o…
... $ in full (6912 bytes with attr data following the first 6144 ... -
ANN: SP1 for Z88DK (aka splib3, Sprite Pack v3.0)Well it's finally arrived, after a month of "a few days from now" release deadlines. SP1 is the lastest version of splib, a flicker-free software sp…
... and tile pairs
uchar attr; // +0 colour
uchar tile ... -
Basic Programming Routine Needed . . . HELP!Hello there, I though i would try and redo an old classic (pacman) in basic . . . BUT . . . I can't remember how to write the code to see what chara…
... has the slight advantage over ATTR that you don't have ... -
Basic Programming Routine Needed . . . HELP!Hello there, I though i would try and redo an old classic (pacman) in basic . . . BUT . . . I can't remember how to write the code to see what chara…
Thanks for the quick responses - just tested the attr(a,b) and it works exactly as i need - may still use the array method though!
What a fantastic community the spectrum STILL has!!!
Regards and appreciation
Drew -
RealXThis may be a dumb question but will RealX ever get released?
... where the ULA reads display/attr bytes from the display memory ... -
RealXThis may be a dumb question but will RealX ever get released?
... where the ULA reads display/attr bytes from the display memory ... -
Problem with rotating procedureHi folks! I wrote a proc in z80 asm, based on: x' = x * cos (z) - y * sin (z) y' = x * sin (z) + y * cos (z) I used a precalculated table of sin a…
... accurate 8.8 fixed point calculation. Anyway, the signed X * sin ... -
CLEAR does not RESTORE the DATA pointer??According to the Spectrum manual, one of the things that a CLEAR command does RESTORE the DATA pointer. Either it doesn't actually do this, or some…
I compiled this list of ones that I had come across for css. However they are more an indication of last-minute changes than any poor standards. The book remains one of the best manuals ever.
The ZX81 manual had a minor error in the RND explanation ... -
The Only Reason Sinclair Succeeded (Provoking Controversy)Although I love my Sinclairs dearly, I think that the only reason they succeeded was because at the time most people did not know any better (factori…
... no flaw in the 3D calculation. It's really ugly though ... -
The Only Reason Sinclair Succeeded (Provoking Controversy)Although I love my Sinclairs dearly, I think that the only reason they succeeded was because at the time most people did not know any better (factori…
... no flaw in the 3D calculation. It's really ugly though ... -
The Only Reason Sinclair Succeeded (Provoking Controversy)Although I love my Sinclairs dearly, I think that the only reason they succeeded was because at the time most people did not know any better (factori…
... /> Probably less pixel means less calculation, even if video-memory size ... -
The Only Reason Sinclair Succeeded (Provoking Controversy)Although I love my Sinclairs dearly, I think that the only reason they succeeded was because at the time most people did not know any better (factori…
... ]Probably less pixel means less calculation, even if video-memory size ... -
Pixel Explosion CodeJust a little snippet to cause explosive effects. It uses table lookups for the screen address, and can handle up to 32 pixel particles. A particle…
And when calculation is only called once,
then place calculationin the code, saves
1 call and 1 ret = 17 + 10 = 27 T states -
Graphics in Basic??What is the fastest way to draw high rez graphics in Basic. Andrew.
... set but not UDGs. Though ATTR is the more common way ... -
Graphics in Basic??What is the fastest way to draw high rez graphics in Basic. Andrew.
... set but not UDGs. Though ATTR is the more common way ... -
Oh so BRIGHT!What is the SLOWEST way to change the attribute area to BRIGHT? It has to be legit! No meaningless instructions or doing stuff for the sake of it. …
[CODE]
10 FOR y = 0 TO 23
20 FOR x = 0 TO 31
30 LET b = ATTR (y,x)
40 IF b>127 THEN LET b=b-127
50 IF b>63 THEN GOTO 80
60 IF y>21 THEN PRINT #0; AT y-22,x; PAPER 8; INK 8; BRIGHT 1; OVER 1; " "
70 IF y -
Oh so BRIGHT!What is the SLOWEST way to change the attribute area to BRIGHT? It has to be legit! No meaningless instructions or doing stuff for the sake of it. …
... ;" ";
40 IF y64 OR (ATTR(y,x)>127 AND ... -
Oh so BRIGHT!What is the SLOWEST way to change the attribute area to BRIGHT? It has to be legit! No meaningless instructions or doing stuff for the sake of it. …
... ,a+((a127 AND a64 OR (ATTR (y,x+1)>127 ... AND ATTR (y,x+1)64 OR ... ,x-1)>127 AND ATTR (y,x-1)64 OR ... +1,x)>127 AND ATTR (y+1,x)64 OR ... (ATTR (y-1,x)>127 AND ATTR (y-1 ... -
Converting ZX Sprites to imagesSo, having written a program to convert images into ZX sprites, I now want something that I can use to convert sprite data into an image. The idea is…
Hoorah!
A quick change of the cursor mode and I can paint useful colours (rather than ATTR 0) over the image, then export as a bundle of .png files. Handy.
Thanks chap. -
Timex Sinclair 2068Hi guys. This is my first post here, the first of many, I hope.. :) I have a Timex Sinclair 2068 but don?t know much about it. It was given as a gif…
... you need a bit of calculation you're doomed to have ... -
tips on optimizing assemblyI wrote a small routine to rotate right a whole screen character line complete with attributes. This is my third ever assembly routine, so I guess i…
... row
; convert hl to attr address, not shown
ld ...