![]() |
Routines |
| Prev: 52136 | Up: Map | Next: 52177 |
|
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 | 52142 | LD HL,49136 | The bottom of the gauge is at 49136. | |
| 52145 | LD DE,52187 | The bottom cap is at FuelGaugeCaps_Second. | ||
| 52148 | CALL DrawBitmap | Draw the bottom cap. | ||
| 52151 | LD HL,17392 | The top of the gauge is at 17392. | ||
| 52154 | LD DE,52177 | The top cap is at FuelGaugeCaps. | ||
| 52157 | CALL DrawBitmap | Draw the top cap. | ||
| 52160 | LD HL,21502 | The column of dots starts at 21502. | ||
| 52163 | LD B,120 | There are 120 rows of dots. | ||
| DrawFuelGaugeFrame_Dots | 52165 | LD (HL),16 | Plot the left-hand dot. | |
| 52167 | INC HL | Move across to the right-hand dot. | ||
| 52168 | LD (HL),16 | Plot the right-hand dot. | ||
| 52170 | DEC HL | Back to the left-hand dot. | ||
| 52171 | CALL MoveUpARow | Move up one pixel row. | ||
| 52174 | DJNZ DrawFuelGaugeFrame_Dots | Repeat for every row of the gauge. | ||
| 52176 | RET | Return. | ||
| Prev: 52136 | Up: Map | Next: 52177 |