CPU-Z80-Disassembler
view release on metacpan or search on metacpan
t/data/zx48.asm view on Meta::CPAN
LD BC,($5C72) ; fetch STRLEN to BC.
BIT 0,(IY+$37) ; test FLAGX - handling a complete simple
; string ?
JR NZ,L2BAF ; forward to L-ADD$ if so.
; must be a string array or a slice in workspace.
; Note. LET a$(3 TO 6) = h$ will assign "hat " if h$ = "hat"
; and "hats" if h$ = "hatstand".
;
; This is known as Procrustean lengthening and shortening after a
; character Procrustes in Greek legend who made travellers sleep in his bed,
; cutting off their feet or stretching them so they fitted the bed perfectly.
; The bloke was hatstand and slain by Theseus.
LD A,B ; test if length
OR C ; is zero and
RET Z ; return if so.
PUSH HL ; save pointer to start.
RST 30H ; BC-SPACES creates room.
t/data/zx48_base.asm view on Meta::CPAN
ld bc,(0x5C72) ; fetch STRLEN to BC.
bit 0,(iy+0x37) ; test FLAGX - handling a complete simple
; string ?
jr nz,L_ADD_ ; forward to L-ADD$ if so.
; must be a string array or a slice in workspace.
; Note. LET a$(3 TO 6) = h$ will assign "hat " if h$ = "hat"
; and "hats" if h$ = "hatstand".
;
; This is known as Procrustean lengthening and shortening after a
; character Procrustes in Greek legend who made travellers sleep in his bed,
; cutting off their feet or stretching them so they fitted the bed perfectly.
; The bloke was hatstand and slain by Theseus.
ld a,b ; test if length
or c ; is zero and
ret z ; return if so.
push hl ; save pointer to start.
rst 0x30 ; BC-SPACES creates room.
t/data/zx48_benchmark.asm view on Meta::CPAN
ld bc, (STRLEN) ; fetch STRLEN to BC.
bit 0, (iy+FLAGX-IY0) ; test FLAGX - handling a complete simple
; string ?
jr nz, L_ADD_ ; forward to L-ADD$ if so.
; must be a string array or a slice in workspace.
; Note. LET a$(3 TO 6) = h$ will assign "hat " if h$ = "hat"
; and "hats" if h$ = "hatstand".
;
; This is known as Procrustean lengthening and shortening after a
; character Procrustes in Greek legend who made travellers sleep in his bed,
; cutting off their feet or stretching them so they fitted the bed perfectly.
; The bloke was hatstand and slain by Theseus.
ld a, b ; test if length
or c ; is zero and
ret z ; return if so.
push hl ; save pointer to start.
rst $30 ; BC-SPACES creates room.
( run in 0.487 second using v1.01-cache-2.11-cpan-49f99fa48dc )