-
BIFROST* Advanced Programming - part 1In BIFROST*, it's much easier to just make changes in the tile map and let the engine automatically draw & animate everything in multicolor for you. …
Interesting tip to speed up user experience...Hi Folks, I suspect many of you will already know this but it only dawned on me a couple of weeks ago. Whilst trying to improve the speed on my XIN…
... reading the keyboard using PEEK 23560 (LAST K) and in MRT ...How do I detect if key 'H' is pressed in machine code?How do I detect that the key has been pressed? I have been using the IN 239 command for keys 6-0, but dont know how to detech 'H'...
or when you use 1 single key only and not DI you can use reading 23560 where the last key pressed is stored.
ld a,(23560) ; lastkey sysvar
or 32 ; make it lowcase
cp "h" ; test for H-key
jr z,hpressedz88dk and im2I set up a minimal IM2 mode so I can draw sprites for a laff [code] #include <string.h> #include <stdio.h> #include <im2.h> #include <stdlib.h> #in…
... work. The "extern uchar LAST_K(23560);" syntax places the C variable ... LAST_K onto address 23560, which is where the system ...New Game: Sun Bucket[IMG]http://i1142.photobucket.com/albums/n608/daveyboyhughes/loader_zpsbc757e08.gif[/IMG] [IMG]http://i1142.photobucket.com/albums/n608/daveyboyhugh…
... on JP 56 (for the 23560 variable), by inserting a custom ...New Game: Sun Bucket[IMG]http://i1142.photobucket.com/albums/n608/daveyboyhughes/loader_zpsbc757e08.gif[/IMG] [IMG]http://i1142.photobucket.com/albums/n608/daveyboyhugh…
... on JP 56 (for the 23560 variable), by inserting a custom ...Detecting flash mode inversionsIs is possible to detect with certainty when flashing characters change from normal to inverted and vice-versa?
... ]1 LET z=0: POKE 23560,0: LET z=z+1 ...Fast Condition TestingHello my friends, I have been writing some input and string handling routines in BASIC lately - yeah I could write them super fast in C/ASM via z88d…
Hi Folks,
On a similar vein I wrote the following general purpose input routine a couple of years back:
[CODE]100 REM ----------------------
110 REM XINPUT DEMO
120 REM \* 2011 PeaSea Software
130 REM 3.1 18- ...SkoolKit 5.1SkoolKit 5.1 has been released. SkoolKit is a set of command line utilities for disassembling Spectrum software, into ASM format or into a bunch o…
...
; Data block at 23560
@label=LASTK
b23560 ...
; Data block at 23560
LASTK:
DEFB 0 ...What am I doing wrong here?[code]IF INKEY$=SCREEN$ (21,4) THEN LET SCORE=SCORE+1[/code] It's delivering a positive every time.
... by using CODE and PEEK 23560.
I'm amazed ...Project: ZX OpusHello my friends, I have been in need of a push lately so I thought if I post some of the work for this project here you guys (and gals) can help me …
... 30000
LAST_K equ 23560 ; Spectrum OS variable area for ...Flicker free animation in BASIC, is it possible ?With all my various noodlings in BASIC and indeed with my so far limited assembly I keep coming up with the same issue. How do you do animations wit…
... not use INKEY$, but PEEK 23560. This makes the keyboard and ...Flicker free animation in BASIC, is it possible ?With all my various noodlings in BASIC and indeed with my so far limited assembly I keep coming up with the same issue. How do you do animations wit…
... more efficient to check PEEK 23560 than INKEY$ to achieve 'almost ... response to the controls. PEEK 23560 is only slighty slower than ...Flicker free animation in BASIC, is it possible ?With all my various noodlings in BASIC and indeed with my so far limited assembly I keep coming up with the same issue. How do you do animations wit…
The trouble I found with PEEK 23560 is that it holds the last value that was pressed until you press something else. Hence my spaceship keeps going left.
INKEY$ will read 0 if you release the key. But I can change to CODE INKEY$ no probs.Flicker free animation in BASIC, is it possible ?With all my various noodlings in BASIC and indeed with my so far limited assembly I keep coming up with the same issue. How do you do animations wit…
... trouble I found with PEEK 23560 is that it holds the ... why you have to POKE 23560,0 to delete it if ...Cool BASIC tricks and tips!Following on from Dunny's excellent suggestion of a compendium of BASIC tips + tricks, I believe it would be better to have a topic dedicated to it. …
... /> [code]100 LET K=PEEK 23560[/code]
Until now ...Thought this would be simple... Z80Hi Folks, Started to read "Beyond simple BASIC, Delving Deeper into your ZX Spectrum" by Dilwyn Jones. This is a great book and I came across the…
Thought this would be simple... Z80Hi Folks, Started to read "Beyond simple BASIC, Delving Deeper into your ZX Spectrum" by Dilwyn Jones. This is a great book and I came across the…
Thought this would be simple... Z80Hi Folks, Started to read "Beyond simple BASIC, Delving Deeper into your ZX Spectrum" by Dilwyn Jones. This is a great book and I came across the…
Need help with keyboard scanning ?After getting frustrated with learning ASM for a while I'm back into it. The little listing below is using the ROM's PRINT AT routine to draw me a sp…
... /> [code]
LAST_K equ $5C08 ; 23560 Sys Var Stores newly pressed ...

