Jump to content

Array concatenation: Difference between revisions

Line 3,854:
Credit to Keith of [https://www.chibiakumas.com ChibiAkumas] for creating it.
 
<lang z80> org $8000
 
org &8000
ld hl,TestArray1 ; pointer to first array
ld de,ArrayRam ; pointer to ram area
Line 3,878 ⟶ 3,877:
ds 24,0 ;24 bytes initialized to zero
 
org &$9000
TestArray2:
byte &$23,&$45,&$67,&$89
; just to prove that this doesn't rely on the arrays
; being "already concatenated" I've stored them
; in the reverse order.
TestArray1:
byte &$aa,&$bb,&$cc,&$dd,&$ee,&$ff</lang>
 
{{out}}
1,489

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.