![]() |
Routines |
| Prev: 61348 | Up: Map | Next: 61651 |
|
Used by the routine at JumpTable.
Jump-table target JumpTable_LocationGraphicSetup. Points CHARS at 61736, draws the script for *LocationId, then restores the ROM font at 15360.
|
||||
| LocationGraphicSetup | 61435 | LD A,5 | Write 5 to *PrintState_Flags. | |
| 61437 | LD (23542),A | |||
| 61440 | LD HL,61736 | Write 61736 to *CHARS. | ||
| 61443 | LD (23606),HL | |||
| 61446 | CALL LocationGraphicSetup_SelectScript | Call LocationGraphicSetup_SelectScript. | ||
|
Restore the ROM font after LocationGraphicSetup_SelectScript returns.
|
||||
| 61449 | LD HL,15360 | Write 15360 to *CHARS. | ||
| 61452 | LD (23606),HL | |||
| 61455 | RET | Return. | ||
|
Match *LocationId to a location script and jump into PrintMessage.
|
||||
| LocationGraphicSetup_SelectScript | 61456 | LD A,(23297) | Fetch *LocationId. | |
| 61459 | LD HL,65145 | Jump to PrintMessage if the id is 4 (dense forest). | ||
| 61462 | CP 4 | |||
| 61464 | JP Z,PrintMessage | |||
| 61467 | LD HL,65175 | Jump to PrintMessage if the id is 18 (Carawood). | ||
| 61470 | CP 18 | |||
| 61472 | JP Z,PrintMessage | |||
| 61475 | LD HL,65208 | Jump to PrintMessage if the id is 19 (Carawood). | ||
| 61478 | CP 19 | |||
| 61480 | JP Z,PrintMessage | |||
| 61483 | LD HL,65238 | Jump to PrintMessage if the id is 20 (Carawood). | ||
| 61486 | CP 20 | |||
| 61488 | JP Z,PrintMessage | |||
| 61491 | LD HL,65268 | Jump to PrintMessage if the id is 21 (Carawood). | ||
| 61494 | CP 21 | |||
| 61496 | JP Z,PrintMessage | |||
| 61499 | LD HL,65298 | Jump to PrintMessage if the id is 22 (Carawood). | ||
| 61502 | CP 22 | |||
| 61504 | JP Z,PrintMessage | |||
| 61507 | LD HL,65328 | Jump to PrintMessage if the id is 23 (Carawood). | ||
| 61510 | CP 23 | |||
| 61512 | JP Z,PrintMessage | |||
| 61515 | LD HL,65349 | Jump to LocationGraphicSetup_PrintScript if the id is 24 (Carawood). | ||
| 61518 | CP 24 | |||
| 61520 | JR Z,LocationGraphicSetup_PrintScript | |||
| 61522 | LD HL,65379 | Jump to LocationGraphicSetup_PrintScript if the id is 25 (Carawood). | ||
| 61525 | CP 25 | |||
| 61527 | JR Z,LocationGraphicSetup_PrintScript | |||
| 61529 | LD HL,65406 | Jump to LocationGraphicSetup_PrintScript if the id is 26 (Carawood). | ||
| 61532 | CP 26 | |||
| 61534 | JR Z,LocationGraphicSetup_PrintScript | |||
| 61536 | LD HL,65433 | Jump to LocationGraphicSetup_PrintScript if the id is 71 (at sea). | ||
| 61539 | CP 71 | |||
| 61541 | JR Z,LocationGraphicSetup_PrintScript | |||
| 61543 | LD HL,65450 | Jump to LocationGraphicSetup_PrintScript if the id is 47 (water's edge). | ||
| 61546 | CP 47 | |||
| 61548 | JR Z,LocationGraphicSetup_PrintScript | |||
| 61550 | LD HL,65486 | Jump to LocationGraphicSetup_PrintScript if the id is 46 (Serpent Sea beach). | ||
| 61553 | CP 46 | |||
| 61555 | JR Z,LocationGraphicSetup_PrintScript | |||
| 61557 | LD HL,61800 | Jump to LocationGraphicSetup_PrintScript if the id is 15 (high platform). | ||
| 61560 | CP 15 | |||
| 61562 | JR Z,LocationGraphicSetup_PrintScript | |||
| 61564 | LD HL,61904 | Jump to LocationGraphicSetup_PrintScript if the id is 6 (arid scrubland). | ||
| 61567 | CP 6 | |||
| 61569 | JR Z,LocationGraphicSetup_PrintScript | |||
| 61571 | LD HL,61918 | Jump to LocationGraphicSetup_PrintScript if the id is 5 (scorched plains). | ||
| 61574 | CP 5 | |||
| 61576 | JR Z,LocationGraphicSetup_PrintScript | |||
| 61578 | LD HL,63300 | Jump to LocationGraphicSetup_PrintScript if the id is 27 (beside Tylon's castle). | ||
| 61581 | CP 27 | |||
| 61583 | JR Z,LocationGraphicSetup_PrintScript | |||
| 61585 | LD HL,63402 | Jump to LocationGraphicSetup_PrintScript if the id is 14 (Cavezats cavern). | ||
| 61588 | CP 14 | |||
| 61590 | JR Z,LocationGraphicSetup_PrintScript | |||
| 61592 | LD HL,63499 | Jump to LocationGraphicSetup_PrintScript if the id is 1 (Ogeron's house). | ||
| 61595 | CP 1 | |||
| 61597 | JR Z,LocationGraphicSetup_PrintScript | |||
| 61599 | LD HL,63609 | Jump to LocationGraphicSetup_PrintScript if the id is 2 (edge of a large forest). | ||
| 61602 | CP 2 | |||
| 61604 | JR Z,LocationGraphicSetup_PrintScript | |||
| 61606 | LD HL,63690 | Jump to LocationGraphicSetup_PrintScript if the id is 11 (Urga-Maul dungeon). | ||
| 61609 | CP 11 | |||
| 61611 | JR Z,LocationGraphicSetup_PrintScript | |||
|
No graphic script. Print a row of asterisks instead.
|
||||
| 61613 | LD A,24 | Write 24 to the line byte of S_POSN. | ||
| 61615 | LD (23689),A | |||
| 61618 | LD A,3 | Write 3 to *PrintState. | ||
| 61620 | LD (23541),A | |||
| 61623 | LD HL,1792 | Write row 7 and column 0 to *PrintState_Column. | ||
| 61626 | LD (23543),HL | |||
| 61629 | LD B,32 | B=32. | ||
| 61631 | LD A,42 | Write * to *PrintState_Character. |
||
| 61633 | LD (23545),A | |||
| 61636 | LD HL,15360 | Write 15360 to *CHARS. | ||
| 61639 | LD (23606),HL | |||
|
Print one row of asterisks.
|
||||
| LocationGraphicSetup_FillRow | 61642 | CALL PrintCharacter | Call PrintCharacter until the count is done. | |
| 61645 | DJNZ LocationGraphicSetup_FillRow | |||
| 61647 | RET | Return. | ||
|
The later id matches cannot relative-jump to PrintMessage.
|
||||
| LocationGraphicSetup_PrintScript | 61648 | JP PrintMessage | Jump to PrintMessage. | |
| Prev: 61348 | Up: Map | Next: 61651 |