![]() |
Routines |
Prev: 684E | Up: Map | Next: 6890 |
Used by the routine at 79B2.
|
|||||
|
|||||
6853 | LD HL,$608E | HL=Graphics_Eggsplosion_Right. | |||
This entry point is used by the routine at 684E.
|
|||||
6856 | LD IX,$0200 | IX=0200. | |||
This entry point is used by the routine at 6845.
|
|||||
685A | PUSH DE | Stash DE on the stack. | |||
685B | EX DE,HL | Exchange the DE and HL registers. | |||
685C | LD B,$02 | B=02. | |||
685E | PUSH BC | Stash BC and HL on the stack. | |||
685F | PUSH HL | ||||
6860 | LD B,$02 | B=02. | |||
6862 | PUSH BC | Stash BC on the stack. | |||
6863 | LD A,(HL) | A=*HL. | |||
6864 | CP IXl | Compare A with the low byte of IX. | |||
6866 | PUSH HL | Stash HL on the stack. | |||
6867 | JR NZ,$6879 | Jump to 6879 if ?? is not equal to 00. | |||
6869 | LD A,IXh | A=the high byte of IX. | |||
686B | LD (HL),A | Write A to *HL. | |||
686C | CALL ConvertAttributeToScreenBufferAddress | Call ConvertAttributeToScreenBufferAddress. | |||
686F | LD B,$08 | B=08. | |||
6871 | LD A,(DE) | A=*DE. | |||
6872 | LD (HL),A | Write A to *HL. | |||
6873 | INC H | Increment H by one. | |||
6874 | INC DE | Increment DE by one. | |||
6875 | DJNZ $6871 | Decrease counter by one and loop back to 6871 until counter is zero. | |||
6877 | JR $6880 | Jump to 6880. | |||
6879 | LD HL,$0008 | HL=0008. | |||
687C | AND A | Set flags. | |||
687D | ADC HL,DE | HL+=DE (with carry). | |||
687F | EX DE,HL | Exchange the DE and HL registers. | |||
6880 | POP HL | Restore HL from the stack. | |||
6881 | INC HL | Increment HL by one. | |||
6882 | POP BC | Restore BC from the stack. | |||
6883 | DJNZ $6862 | Decrease counter by one and loop back to 6862 until counter is zero. | |||
6885 | POP HL | Restore HL from the stack. | |||
6886 | LD C,$20 | C=20. | |||
6888 | AND A | Set flags. | |||
6889 | ADC HL,BC | HL+=BC (with carry). | |||
688B | POP BC | Restore BC from the stack. | |||
688C | DJNZ $685E | Decrease counter by one and loop back to 685E until counter is zero. | |||
688E | POP DE | Restore DE from the stack. | |||
688F | RET | Return. |
Prev: 684E | Up: Map | Next: 6890 |