Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
24
Task/Introspection/Locomotive-Basic/introspection-1.basic
Normal file
24
Task/Introspection/Locomotive-Basic/introspection-1.basic
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
org &4000 ; program start address
|
||||
|
||||
push bc
|
||||
push de
|
||||
push hl
|
||||
push af
|
||||
ld bc,&df00 ; select BASIC ROM
|
||||
out (c),c ; (ROM 0)
|
||||
|
||||
ld bc,&7f86 ; make ROM accessible at &c000
|
||||
out (c),c ; (RAM block 3)
|
||||
|
||||
ld hl,&c001 ; copy ROM version number to RAM
|
||||
ld de,&4040
|
||||
ld bc,3
|
||||
ldir
|
||||
|
||||
ld bc,&7f8e ; turn off ROM
|
||||
out (c),c
|
||||
pop af
|
||||
pop hl
|
||||
pop de
|
||||
pop bc
|
||||
ret
|
||||
Loading…
Add table
Add a link
Reference in a new issue