;display HP on OWborder. ;I have questions: ;how do I display a tile that I wanted to? (meaning ;how do I use status bar tiles on the ow border, ;I expext that if I put #$0139, that "01" in it ;would show a 1 on the selected tile, but instead ;shows a black 8x8 square. ;How do I make a counter (both the numerical and the ;"rows", (I know how to use the HEX->dec converter)) on ;ow border? since the ow border's tiles are handled ;differently, It would display tiles other than what ;I expexted. ;I'm worried that the following wouldn't work (this displays ;a non-numerical "in a row" tank counter) because of the tile ;system work, It uses index to "spread" the tiles. ;----------------------------------------------------------------- ;!Health = $0DC4 ;!MaxHealth = $0DC5 ;!ow_border_pos = $xxxx ; ; LDY !MaxHealth ;\if a player hasn't grab the first tank, actually ; DEY ;/starts at #$01 ; BEQ dont_show_tnks ;tile_loop: ; LDA #$3E ;\empty tank, store in each row ; STA !ow_border_pos,y ;/(to indicate max) ; DEY ;\so it stores to the previus tile ; BNE tile_loop ;/to distribute tiles until y=0. ;dont_show_tnks: ; ;all of this below placed here so it overwrites the ; ;empty tanks after. ; LDY !Health ;\current health tanks +1 ; DEY ;/ ; BEQ dont_show_tnks1 ;tile_loop1: ; LDA #$3F ;\full tank, store in each row ; STA !ow_border_pos,y ;/ ; DEY ;\so it stores to previous tiles ; BNE tile_loop1 ;/till y=0 ;dont_show_tnks1: ;----------------------------------------------------------------- ;here is the code that I use from the forums: REP #$30 LDA $7F837B TAX LDA #$2050 ;first two digit = position? STA $7F837D,x INX INX LDA #$0200 STA $7F837D,x INX INX LDA #$0139 ;xx39, tile number? IDK on how to use this. STA $7F837D,x INX INX LDA #$FFFF STA $7F837D,x TXA STA $7F837B SEP #$30 RTS