-
RST 16 with TASMCan any body tell me what is wong when I assemble this test code with TASM : ;print a long string "help me" start .org 32000 ld a,2 call 5633…
... ,(de)
inc de
RST 16
jr loop
data ... : unrecognized argument. which is the RST 16
Is it something ... -
Using RST 16 and udg flickerHi there! I'm using UDGs and RST 16 to make a simple canyon bomber game. I've got the game mechanics working ( finally ) but now I'd like to make …
... /> I'm using UDGs and RST 16 to make a simple canyon ... -
Print TextHow do i print text on the bottom left row(memory location in attribute 23295) of the screen in assembly? I understand the parts better on paper and …
... A,22 ;AT INSTRUCTION
RST 16 ;FAST CALL, don't know full ... SCREEN)
RST 16 ;
LD A,6 ;COLUMN
RST 16 ;
ld ... -
Print TextHow do i print text on the bottom left row(memory location in attribute 23295) of the screen in assembly? I understand the parts better on paper and …
... A,22 ;AT INSTRUCTION
RST 16 ;FAST CALL, don't know full ... SCREEN)
RST 16 ;
LD A,7 ;COLUMN
RST 16 ;
ld ... -
Print TextHow do i print text on the bottom left row(memory location in attribute 23295) of the screen in assembly? I understand the parts better on paper and …
...
ld a,16 ;set ink colour
rst 16
ld a ... A,22 ;AT INSTRUCTION
RST 16 ;FAST CALL, don't know full ... SCREEN)
RST 16 ;
LD A,6 ;COLUMN
RST 16 ;
ld ... ]
These codes before RST 16 or in the defbs of ... -
Move objectHi again, I am using paper colors to represent game objects. I have a "paddle" that is 4 pixels wide. I save its position as a 2 byte word in memory…
... /> RST 16 ; fast call
ld a, 22 ; AT synbol
RST 16 ; fast ... /> RST 16 ; fast call
ld a, 7 ; column 7
RST 16 ; fast ... -
Move objectHi again, I am using paper colors to represent game objects. I have a "paddle" that is 4 pixels wide. I save its position as a 2 byte word in memory…
... /> RST 16 ; fast call
ld a, 22 ; AT synbol
RST 16 ; fast ... /> RST 16 ; fast call
ld a, 7 ; column 7
RST 16 ; fast ... -
Codies help? Werewolves of LondonHi All, never one for shying away from the deep end, having only just dipped my toe in to the world of machine code I find myself trying to find out …
... .
[/quote]
RST are fast single-byte calls. The fact ... />
Since RST can be regarded as a fast CALL, you could ... done on the Spectrum. RST 16 (print) and RST 48 (calculator) are useful ... -
Tile based graphics and scrolling thingy...Here's my best attempt so far at a tile based rendering and scrolling routine. It draws in 22 8*8 graphics tiles along the top of the screen (junk i…
... text printing routine that used RST 16, with the ASCII code in ...
ldi ; Using LDI, 16 ticks per byte * 22 = 352 ... that bit of code as fast as it can possibly be ... -
Clearing 22 lines of the screenHow do I go about clearing the top 22 lines of the screen and leave the bottom #0 area untouched? I have a routine to reset the attributes, but cant…
... rows. That will be really fast and you can redraw the ... that I'm surprised the RST 16 routine isn't quick enough ... -
Clearing 22 lines of the screenHow do I go about clearing the top 22 lines of the screen and leave the bottom #0 area untouched? I have a routine to reset the attributes, but cant…
... rows. That will be really fast and you can redraw the ... that I'm surprised the RST 16 routine isn't quick enough ... -
How to Write ZX Spectrum Games - Jonathan CauldwellHello, I'm trying to improve my very basic level of assembler by reading the Jonathan Cauldwell guide. I'm fine with the basics LD, CP, and JP,…
... runs fine (but obviously very fast), but with the delay ... ; want an asterisk here.
rst 16 ; display it.
call delay ... ASCII code for space.
rst 16 ; delete old asterisk.
ld ... -
How to disable the "scroll?" message?Hello. I'm a beginner Z80 assembly programmer and I decided to make a ZX Spectrum game to practice my skills and gain some more experience. I curr…
... quote="Crisis;992784"]oops, to fast, you say in MC and ... equ 15
ink equ 16 ; ink , x (0-7 ... 0xFF
ret z
rst 16
; inc b ; ... ,1,flash,1,"Screen#1at1,16"
defb 255
... -
The incredible shrinking screendumpIn this topic I stated that I would be impressed if the screendump could be smaller than 37 bytes. [url="http://www.worldofspectrum.org/forums/viewt…
PRINT AT in assembler Hello everyone, I am very new to this forums. Like perhaps many others I had a Spectrum as a child and did pretty much simple BASIC programming, bu…
... />
LD a,22
RST 16
LD a,10 (x ... -coord)
RST 16
LD a,20 (y ... -coord)
RST 16
LD a,65 (character ... code)
RST 16
I might have ...Programming MC : first stepsIsn't nice to collect all kinds of short routines to help making the first steps into MC for everyone who never touched MC? What I mean is mostly th…
... a,"0" ; display number
rst 16 ; with print
ret ; Back ...MC TipPlace your MC tip here: Here is my first: When using alternate registers (EXX) the HL register must not be affected on return to BASIC. Also the IY…
... using ROM-routines (i.e. RST 16).
or return to BASIC ...Aggravating problem with screensI've rewritten my Sam C runtime emulator code ( well almost ) to allow me to use my own routines for blitting sprites onto the screen, storing tiles …
... your program calls ROM routines ( RST 16 and jump
table vectors ...Assembler snippetsI was just thinking that a thread for small but useful assembler snippets to do useful things would be cool for people learning z80 coding. Not to me…
Machine code sub routinesHi everyone, I have noticed that in machine code you can call different "preset" routines like rst 16 or something, or call 6533... where can i fi…
... call different "preset" routines like rst 16 or something, or call 6533 ...Print text in assemblyHello, a perhaps simple question: I would like to print a text string on the screen and I wonder how to do that in the most easy way? I seem to re…
... kind of ROM based code, RST 16 (?), but can that print more ...Optimization for this codeHello, I have done and submitted a small program for the CSS Crap Game Compo which involves a machine code routine. The z80 with BASIC and MC is av…
... 255
ret z
rst 16
inc hl
jr ... /> text defb 22,6,15,16,4,18,1 ; AT 5 ...quick - Zx80 ASM questionWhile I am ploughing through lots of ASM listings, one of my earlier adaptation attempts surprised me [B][asm code][/B] [code] org 32768 start: ld…
... done if it is
rst 16 ; spectrum: print the character in ...Keys redefine routine and key check.I have written some asm code which allows me to redefine keys (for a game etc.), and also allows me to be able to check any keypresses for the redefi…
... 5633
CC_INK: EQU 16
CC_PAPER: EQU 17< ... ret z ; so exit
rst 16 ; print the character
... $bf
key_pause_pattern: defb 16
key_quit_port: defb $df< ... br /> key_quit_pattern: defb 16
msg_up: defm CC_AT,7 ...probably a stupid question about RST16I'm using the 'hello world' code borrowed from [url=http://equant-retrochallenge.blogspot.com/2008/07/zx-spectrum-assembly-programming-under.html]her…
... done if it is
rst 16 ; Spectrum: Print the character in ...Newbie says 'Alreet?'Hiya dudes, Just dropping a line to say hello as i've decided at 33 to try and fulfill a long time ambition to write a speccy game in machine code..…
... move round the screen using Rst 16, but I feel i'm ...
