Product specifications

;
SPRIMP-SPRITE IMPACT DETECTION ROUTINE
; USES ROUTINE FROM SECTION 4 (IMPACT)
; AND VARIABLE IONOFF
;
; NO REGISTER SET UP REQUIRED ON ENTRY
; AF, BC, DE, HL REGISTERS AFFECTED ON EXIT
;
IONOFF; DB 0 ;See description above
;
SPRIMP: LD A,(IONOFF) ;If IONOFF = 0 then no action
CP 0 ;taken – goto SPR99 and exit
JP Z,SPRI99 ;else drop through to SPRI1
;
SPRI1; (Impact detection test routine from section 4)
;
SPRI99: (End of routine)
Appending programs to other programs
3.4
Appending short programs to other short programs (ie both less than 8K), is very
easy. The procedure makes use of four 2 byte variables listed in table form below.
Variable Address Address
name of low byte of high byte
VAZERO £FD65 £FD66
NBTOP £FAA4 £FAA5
BASTOP £FAA7 £FAA8
BASTBO £FAAC £FAAD
The assumptions made are:
1. There are no duplicate line numbers in either section of code
2. That the user has some knowledge of how to use PANEL.
The procedure to follow is listed below and MUST be adhered to EXACTLY
1. Load the first program into your MTX. This is the program to which you second
program will be appended to.
2. Enter panel.
3. Copy the contents of NETOP to VAZERO. Low byte to low byte and high
byte to high byte.
4. Note the original value of VAZERO and NBTOP as below.
VAZERO original value (£4000 for example)
NBTOP original value (£4327 for example)
5. Exit panel and return to BASIC
6. Load in the second program
7. Enter panel