Prev: $322E Up: Map Next: $3326
$3279: Copy a character buffer into page 0
Used by the routines at $0800, $149F, $15B3, $1640, $17E5, $191B, $1EE3, $2241, $2696, $27D2, $29C8, $2B52, $2E13, $3AB4, $3AD5 and $BE09.
$3279 LDA #$60 Place the base address of the current character's buffer at $4E.
$327B STA $4E
$327D LDA #$78
$327F STA $4F
$3281 LDX $60
$3283 BEQ $328A
$3285 INC $4F
$3287 DEX
$3288 BNE $3285
$328A LDY #$00 Copy the character's animatory state from byte $60 of his buffer to $26.
$328C LDA ($4E),Y
$328E STA $26
$3290 INY Y=$01.
$3291 LDA ($4E),Y Copy the character's x-coordinate from byte $61 of his buffer to $FC.
$3293 STA $FC
$3295 INY Y=$02.
$3296 LDA ($4E),Y Copy the character's y-coordinate from byte $62 of his buffer to $FB.
$3298 STA $FB
$329A INY Y=$03.
$329B LDA ($4E),Y Collect the primary command routine address from bytes $63 and $64 of the character's buffer and place it at $29.
$329D STA $29
$329F INY
$32A0 LDA ($4E),Y
$32A2 STA $2A
$32A4 INY Y=$05.
$32A5 LDA ($4E),Y Copy byte $65 of the character's buffer to $A6.
$32A7 STA $A6
$32A9 INY Y=$06.
$32AA LDA ($4E),Y Copy byte $66 of the character's buffer to $A7.
$32AC STA $A7
$32AE INY Y=$07.
$32AF LDA ($4E),Y Copy byte $67 of the character's buffer to $A8.
$32B1 STA $A8
$32B3 INY Y=$08.
$32B4 LDA ($4E),Y Copy byte $68 of the character's buffer to $A9.
$32B6 STA $A9
$32B8 INY Y=$09.
$32B9 LDA ($4E),Y Collect the interruptible subcommand routine address from bytes $69 and $6A of the character's buffer and place it at $AA.
$32BB STA $AA
$32BD INY
$32BE LDA ($4E),Y
$32C0 STA $AB
$32C2 INY Y=$0B.
$32C3 LDA ($4E),Y Copy byte $6B of the character's buffer to $AC.
$32C5 STA $AC
$32C7 INY Y=$0C.
$32C8 LDA ($4E),Y Copy byte $6C of the character's buffer to $AD.
$32CA STA $AD
$32CC INY Y=$0D.
$32CD LDA ($4E),Y Copy byte $6D of the character's buffer to $AE.
$32CF STA $AE
$32D1 INY Y=$0E.
$32D2 LDA ($4E),Y Copy byte $6E of the character's buffer to $AF.
$32D4 STA $AF
$32D6 INY Y=$0F.
$32D7 LDA ($4E),Y Collect the uninterruptible subcommand routine address from bytes $6F and $70 of the character's buffer and place it at $B0.
$32D9 STA $B0
$32DB INY
$32DC LDA ($4E),Y
$32DE STA $B1
$32E0 INY Y=$11.
$32E1 LDA ($4E),Y Copy byte $71 of the character's buffer to $B2.
$32E3 STA $B2
$32E5 INY Y=$12.
$32E6 LDA ($4E),Y Copy byte $72 of the character's buffer to $B3.
$32E8 STA $B3
$32EA INY Y=$13.
$32EB LDA ($4E),Y Copy byte $73 of the character's buffer to $B4.
$32ED STA $B4
$32EF INY Y=$14.
$32F0 LDA ($4E),Y Copy byte $74 of the character's buffer to $B5.
$32F2 STA $B5
$32F4 INY Y=$15.
$32F5 LDA ($4E),Y Collect the address reached in the character's command list from bytes $75 and $76 of the character's buffer and place it at $3B.
$32F7 STA $3B
$32F9 INY
$32FA LDA ($4E),Y
$32FC STA $3C
$32FE INY Y=$17.
$32FF LDA ($4E),Y Collect the start address of the character's command list from bytes $77 and $78 of the character's buffer and place it at $3D.
$3301 STA $3D
$3303 INY
$3304 LDA ($4E),Y
$3306 STA $3E
$3308 INY Y=$19.
$3309 LDA ($4E),Y Copy byte $79 of the character's buffer to $FF.
$330B STA $FF
$330D INY Y=$1A.
$330E LDA ($4E),Y Copy byte $7A of the character's buffer to $3F.
$3310 STA $3F
$3312 INY Y=$1B.
$3313 LDA ($4E),Y Collect the continual subcommand routine address from bytes $7B and $7C of the character's buffer and place it at $39.
$3315 STA $39
$3317 INY
$3318 LDA ($4E),Y
$331A STA $3A
$331C INY Y=$1D.
$331D LDA ($4E),Y Pick up byte $7D of the character's buffer and do nothing with it.
$331F INY Y=$1E.
$3320 LDA ($4E),Y Pick up byte $7E of the character's buffer and do nothing with it.
$3322 INY Y=$1F.
$3323 LDA ($4E),Y Pick up byte $7F of the character's buffer and do nothing with it.
$3325 RTS
Prev: $322E Up: Map Next: $3326