
Loves: atilim
Loves: atilim

OZApps said:Any Spectrum developer will definitely recollect this one
LD HL,16384
LD DE, 16384
LD BC,6144
LD(HL),0
LDIR
RET
LD DE,16385LD BC,6143 for just the screen orLD BC,6911 to clear screen and attributes21 00 40 11 01 40 01 ff 1a ed b0 c9Loves: OZApps
atilim said:writing your own assembler.. whoa ^:)^ I remember we were booting CP/M only for its horrible pascal compiler.
ld hl,screen_stack_base
exx
ld de,object_stack_base
-----eek
add hl,sp -- save stack pointer
ex de,hl
ld sp, hl
pop af,bc,ix,iy
ex af,af
exx
pop af
pop bc,de
ld sp,hl
push de,bc,af
exx
ex af,af
push iy,ix,bc,af
Loves: OZApps