Unused |
Prev: $33BF | Up: Map | Next: $34B5 |
This routine is not used.
|
||||
$3472 | LDA $2B | Pick up ERIC's status flags from $2B. | ||
$3474 | AND #$10 | Is ERIC sitting or lying on the floor? | ||
$3476 | BNE $34A8 | Branch if so. | ||
$3478 | STA $4B | Clear ERIC's midstride indicator at $4B. | ||
$347A | LDA #$14 | Initialise the knockout counter at $0F to $14. | ||
$347C | STA $0F | |||
$347E | JSR $322E | Update the SRB for ERIC's current animatory state and location. | ||
$3481 | LDA #$1A | Set voice #3 attack length to 8ms and decay length to 1.5s. | ||
$3483 | STA $D413 | |||
$3486 | LDA #$81 | Set voice #3 control register: voice on, attack-decay-sustain cycle; noise enabled. | ||
$3488 | STA $D412 | |||
$348B | LDA $26 | Pick up ERIC's animatory state from $26. | ||
$348D | CMP #$05 | Is ERIC sitting on a chair? | ||
$348F | BNE $3499 | Branch if not. | ||
$3491 | INC $26 | Set ERIC's animatory state to $06 (sitting on the floor). | ||
$3493 | JSR $322E | Update the SRB for ERIC's new animatory state. | ||
$3496 | JMP $34B4 | Return. | ||
$3499 | LDA $26 | Pick up ERIC's animatory state from $26. | ||
$349B | AND #$80 | Keep only the direction bit (bit 7). | ||
$349D | CLC | Set ERIC's animatory state to $07 or $87 (lying on the floor). | ||
$349E | ADC #$07 | |||
$34A0 | STA $26 | |||
$34A2 | JSR $322E | Update the SRB for ERIC's new animatory state. | ||
$34A5 | JMP $34B4 | Return. | ||
ERIC is sitting or lying on the floor.
|
||||
$34A8 | DEC $0F | Decrement the knockout counter at $0F. | ||
$34AA | BNE $34B4 | Return unless it's zero. | ||
$34AC | LDA #$00 | Clear ERIC's status flags at $2B. | ||
$34AE | STA $2B | |||
$34B0 | LDA #$FF | Set ERIC's posture indicator at $14 to $FF: ERIC is standing up now. | ||
$34B2 | STA $14 | |||
$34B4 | RTS |
Prev: $33BF | Up: Map | Next: $34B5 |