Advertisement
luckytyphlosion

DisplayTextIDInit

Nov 7th, 2015
294
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.         xor a
  2.         ld [wListMenuID], a
  3.         ld a, [wAutoTextBoxDrawingControl]
  4.         bit 0, a
  5.         jr nz, .asm_6f3c
  6.         ld a, [H_DOWNARROWBLINKCNT2]
  7.         and a
  8.         jr nz, .asm_6f33
  9.         ld a, [wd74b]
  10.         bit 5, a
  11.         ld hl, $c3aa
  12.         ld bc, $0e08
  13.         jr nz, .asm_6f39
  14.         ld hl, $c3aa
  15.         ld bc, $0c08
  16.         jr .asm_6f39
  17.  
  18. .asm_6f33
  19.         ld hl, $c490
  20.         ld bc, $0412
  21.  
  22. .asm_6f39
  23.         call TextBoxBorder
  24.  
  25. .asm_6f3c
  26.         ld hl, wFontLoaded
  27.         set 0, [hl]
  28.         ld hl, wFlags_0xcd60
  29.         bit 4, [hl]
  30.         res 4, [hl]
  31.         jr nz, .asm_6f4d
  32.         call UpdateSprites
  33.  
  34. .asm_6f4d
  35.         ld hl, $c119
  36.         ld c, $f
  37.         ld de, $0010
  38. .asm_6f55
  39.         ld a, [hl]
  40.         inc h
  41.         ld [hl], a
  42.         dec h
  43.         add hl, de
  44.         dec c
  45.         jr nz, .asm_6f55
  46.         ld hl, $c102
  47.         ld de, $0010
  48.         ld c, e
  49. .asm_6f64
  50.         ld a, [hl]
  51.         cp $ff
  52.         jr z, .asm_6f6c
  53.         and $fc
  54.         ld [hl], a
  55.  
  56. .asm_6f6c
  57.         add hl, de
  58.         dec c
  59.         jr nz, .asm_6f64
  60.         ld b, $9c
  61.         call CopyScreenTileBufferToVRAM
  62.         xor a
  63.         ld [hWY], a
  64.         call LoadFontTilePatterns
  65.         ld a, $1
  66.         ld [H_AUTOBGTRANSFERENABLED], a
  67.         ret
  68. ; 0x6f80
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement