![]() |
Routines |
| Prev: CBA8 | Up: Map | Next: CBD1 |
|
Used by the routine at DrawHUD.
Draws the outline of the fuel gauge: a cap at the bottom and one at the top, and a column of dots down the right of the gauge.
|
||||
| DrawFuelGaugeFrame | CBAE | LD HL,$BFF0 | The bottom of the gauge is at BFF0. | |
| CBB1 | LD DE,$CBDB | The bottom cap is at FuelGaugeCaps_Second. | ||
| CBB4 | CALL DrawBitmap | Draw the bottom cap. | ||
| CBB7 | LD HL,$43F0 | The top of the gauge is at 43F0. | ||
| CBBA | LD DE,$CBD1 | The top cap is at FuelGaugeCaps. | ||
| CBBD | CALL DrawBitmap | Draw the top cap. | ||
| CBC0 | LD HL,$53FE | The column of dots starts at 53FE. | ||
| CBC3 | LD B,$78 | There are 78 rows of dots. | ||
| DrawFuelGaugeFrame_Dots | CBC5 | LD (HL),$10 | Plot the left-hand dot. | |
| CBC7 | INC HL | Move across to the right-hand dot. | ||
| CBC8 | LD (HL),$10 | Plot the right-hand dot. | ||
| CBCA | DEC HL | Back to the left-hand dot. | ||
| CBCB | CALL MoveUpARow | Move up one pixel row. | ||
| CBCE | DJNZ DrawFuelGaugeFrame_Dots | Repeat for every row of the gauge. | ||
| CBD0 | RET | Return. | ||
| Prev: CBA8 | Up: Map | Next: CBD1 |