First Queen debug

Thảo luận trong 'Turn Based Strategy' bắt đầu bởi SPC700, 22/8/21.

  1. SPC700

    SPC700 Legend of Zelda

    Tham gia ngày:
    1/10/20
    Bài viết:
    1,074
    In memory of Hồng và Dài....................................................................................................

    Mode 7 text: OAM text

    [​IMG]

    C0/9D47: 20519E JSR $9E51 //opening text
    C0/9D4A: B013 BCS $9D5F
    C0/9D4C: 207D9E JSR $9E7D
    C0/9D4F: 209A9E JSR $9E9A
    C0/9D52: 2262EDC0 JSR $C0ED62
    C0/9D56: 226FEDC0 JSR $C0ED6F
    C0/9D5A: B0FA BCS $9D56
    C0/9D5C: 28 PLP
    C0/9D5D: 18 CLC
    C0/9D5E: 6B RTL

    C0/9E51: 08 PHP //opening text: waga matsuei
    C0/9E52: C230 REP #$30
    C0/9E54: A99300 LDA #$0093
    C0/9E57: 8DFB2C STA $2CFB
    C0/9E5A: A90008 LDA #$0800
    C0/9E5D: 8DF72C STA $2CF7 //text obj flip
    C0/9E60: A91058 LDA #$5810 : text y pos
    C0/9E63: 8DF52C STA $2CF5 //text y pos
    C0/9E66: A9DC00 LDA #$00DC
    C0/9E69: 8DF92C STA $2CF9 //wait
    C0/9E6C: A9BC01 LDA #$01BC //Text ID ptr?
    C0/9E6F: 8DF12C STA $2CF1
    C0/9E72: 20A99F JSR $9FA9 //init 38ec
    C0/9E75: 2296EEC0 JSL $C0EE96 //text routine
    C0/9E79: 28 PLP
    C0/9E7A: 4CF6AA JMP $AAF6
    C0/9E7D: 201F9F JSR $9F1F
    C0/9E80: 20559F JSR $9F55
    C0/9E83: 20E0AC JSR $ACE0
    C0/9E86: 2068A2 JSR $A268
    C0/9E89: 22F004C1 JSR $C104F0
    C0/9E8D: 20B39E JSR $9EB3
    C0/9E90: 20E0AC JSR $ACE0
    C0/9E93: 202DA2 JSR $A22D
    C0/9E96: 20F99E JSR $9EF9
    C0/9E99: 60 RTS


    C0/EE96: 20A3EE JSR $EEA3 //read text id
    C0/EE99: 201DEF JSR $EF1D //init oam table, write vram pos, no flip
    C0/EE9C: 2033F0 JSR $F033
    C0/EE9F: 2048EF JSR $EF48
    C0/EEA2: 6B RTL


    C0/EEA3: E220 SEP #$20
    C0/EEA5: C210 REP #$10
    C0/EEA7: A960 LDA #$60
    C0/EEA9: 1CFB2C TRB $2CFB
    C0/EEAC: 9C1C2D STZ $2D1C //line No.
    C0/EEAF: 9C1D2D STZ $2D1D
    C0/EEB2: 9C1B2D STZ $2D1B
    C0/EEB5: 9CFC2C STZ $2CFC
    C0/EEB8: A941 LDA #$41 //speed
    C0/EEBA: 8D1E2D STA $2D1E
    C0/EEBD: C220 REP #$20
    C0/EEBF: ADF12C LDA $2CF1
    C0/EEC2: 29FF3F AND #$3FFF
    C0/EEC5: 0A ASL A
    C0/EEC6: AA TAX
    C0/EEC7: BF002AC1 LDA $C12A00,X //Text ID
    C0/EECB: 8D032D STA $2D03 //txt ptr //text ID
    C0/EECE: 60 RTS


    C0/EF1D: 08 PHP
    C0/EF1E: E220 SEP #$20
    C0/EF20: A20010 LDX #$1000
    C0/EF23: ADFB2C LDA $2CFB
    C0/EF26: 8910 BIT #$10
    C0/EF28: D003 BNE $EF2D
    C0/EF2A: A28000 LDX #$0080
    C0/EF2D: 8EFD2C STX $2CFD
    C0/EF30: ADFB2C LDA $2CFB
    C0/EF33: 8980 BIT #$80
    C0/EF35: D009 BNE $EF40
    C0/EF37: 206DFD JSR $FD6D //init oam table
    C0/EF3A: A20000 LDX #$0000
    C0/EF3D: 8EF72C STX $2CF7 //text obj flip
    C0/EF40: A20040 LDX #$4000
    C0/EF43: 8E0D2D STX $2D0D //vram pos
    C0/EF46: 28 PLP
    C0/EF47: 60 RTS

    C0/FD6D: DA PHX
    C0/FD6E: 5A PHY
    C0/FD6F: 48 PHA
    C0/FD70: 08 PHP
    C0/FD71: C210 REP #$10
    C0/FD73: E220 SEP #$20
    C0/FD75: A20002 LDX #$0200
    C0/FD78: A9E0 LDA #$E0
    C0/FD7A: CA DEX
    C0/FD7B: CA DEX
    C0/FD7C: CA DEX
    C0/FD7D: CA DEX
    C0/FD7E: 9DED36 STA $36ED,X
    C0/FD81: D0F7 BNE $FD7A
    C0/FD83: C220 REP #$20
    C0/FD85: A20002 LDX #$0200
    C0/FD88: A01000 LDY #$0010
    C0/FD8B: A9AAAA LDA #$AAAA //big oam
    C0/FD8E: 9DEC36 STA $36EC,X
    C0/FD91: E8 INX
    C0/FD92: E8 INX
    C0/FD93: 88 DEY
    C0/FD94: D0F5 BNE $FD8B
    C0/FD96: 28 PLP
    C0/FD97: 68 PLA
    C0/FD98: 7A PLY
    C0/FD99: FA PLX
    C0/FD9A: 60 RTS

    C0/F033: C230 REP #$30
    C0/F035: 3B TSC
    C0/F036: 8DFF2C STA $2CFF //save stack
    C0/F039: A90040 LDA #$4000
    C0/F03C: 8D0D2D STA $2D0D //vram pos
    C0/F03F: A90400 LDA #$0004 //max lines
    C0/F042: 48 PHA
    C0/F043: ADFC2C LDA $2CFC
    C0/F046: 898000 BIT #$0080 //end block
    C0/F049: D017 BNE $F062
    C0/F04B: 20D8F3 JSR $F3D8 //draw 1 text line
    C0/F04E: EE1C2D INC $2D1C //line No.
    C0/F051: EE1B2D INC $2D1B
    C0/F054: 2093F0 JSR $F093
    C0/F057: 9004 BCC $F05D
    C0/F059: 68 PLA
    C0/F05A: 4C33F0 JMP $F033
    C0/F05D: 68 PLA
    C0/F05E: 3A DEC A
    C0/F05F: D0E1 BNE $F042
    C0/F061: 48 PHA
    C0/F062: 68 PLA
    C0/F063: CE1C2D DEC $2D1C //line No.
    C0/F066: AD1B2D LDA $2D1B
    C0/F069: 2900FF AND #$FF00
    C0/F06C: 8D1B2D STA $2D1B
    C0/F06F: ADFC2C LDA $2CFC
    C0/F072: 898000 BIT #$0080
    C0/F075: D018 BNE $F08F
    C0/F077: 20B9F0 JSR $F0B9 //write table
    C0/F07A: 20D8F3 JSR $F3D8 //real draw char
    C0/F07D: AD1B2D LDA $2D1B
    C0/F080: 1A INC A
    C0/F081: 2907FF AND #$FF07
    C0/F084: 8D1B2D STA $2D1B
    C0/F087: 2093F0 JSR $F093
    C0/F08A: 90E3 BCC $F06F
    C0/F08C: 4C33F0 JMP $F033
    C0/F08F: 20CDFA JSR $FACD
    C0/F092: 60 RTS

    C0/F3D8: C230 REP #$30
    C0/F3DA: 3B TSC
    C0/F3DB: 8D012D STA $2D01 //keep stack
    C0/F3DE: 205EFD JSR $FD5E //stz $2d20
    C0/F3E1: A9FF00 LDA #$00FF
    C0/F3E4: 1C1D2D TRB $2D1D
    C0/F3E7: AD1B2D LDA $2D1B
    C0/F3EA: 290700 AND #$0007
    C0/F3ED: EB XBA
    C0/F3EE: 0A ASL A
    C0/F3EF: 0A ASL A
    C0/F3F0: 18 CLC
    C0/F3F1: 690040 ADC #$4000
    C0/F3F4: 8D0D2D STA $2D0D //vram pos
    C0/F3F7: A00000 LDY #$0000
    C0/F3FA: A91000 LDA #$0010 //16 char per line
    C0/F3FD: 48 PHA
    C0/F3FE: AE032D LDX $2D03 //txt ptr //text ID
    C0/F401: 8E032D STX $2D03 //txt ptr
    C0/F404: BF002AC1 LDA $C12A00,X //read text
    C0/F408: 2085F5 JSR $F585 //char shori
    C0/F40B: B0F4 BCS $F401
    C0/F40D: 20C1F9 JSR $F9C1 //draw complete char
    C0/F410: 2042F2 JSR $F242 //enable nmi, wait nmi, dma char
    C0/F413: AD0D2D LDA $2D0D //vram pos
    C0/F416: 18 CLC
    C0/F417: 692000 ADC #$0020
    C0/F41A: 89FF00 BIT #$00FF
    C0/F41D: D004 BNE $F423
    C0/F41F: 18 CLC
    C0/F420: 690001 ADC #$0100
    C0/F423: 8D0D2D STA $2D0D //vram pos
    C0/F426: EE1D2D INC $2D1D
    C0/F429: EE032D INC $2D03 //txt ptr
    C0/F42C: 68 PLA
    C0/F42D: 3A DEC A
    C0/F42E: D0CD BNE $F3FD
    C0/F430: 207DF4 JSR $F47D
    C0/F433: 60 RTS

    C0/F093: ADFC2C LDA $2CFC
    C0/F096: 892000 BIT #$0020
    C0/F099: F008 BEQ $F0A3
    C0/F09B: 20CDFA JSR $FACD
    C0/F09E: 2020F5 JSR $F520
    C0/F0A1: 38 SEC
    C0/F0A2: 60 RTS
    C0/F0A3: A94000 LDA #$0040
    C0/F0A6: 2CFC2C BIT $2CFC
    C0/F0A9: F00C BEQ $F0B7
    C0/F0AB: 1CFC2C TRB $2CFC
    C0/F0AE: A90400 LDA #$0004
    C0/F0B1: 0CFC2C TSB $2CFC
    C0/F0B4: 20CDFA JSR $FACD
    C0/F0B7: 18 CLC
    C0/F0B8: 60 RTS

    C0/FACD: ADFB2C LDA $2CFB
    C0/FAD0: 890800 BIT #$0008
    C0/FAD3: D00D BNE $FAE2
    C0/FAD5: AD1E2D LDA $2D1E
    C0/FAD8: 898000 BIT #$0080
    C0/FADB: D005 BNE $FAE2
    C0/FADD: 890F00 BIT #$000F
    C0/FAE0: D016 BNE $FAF8
    C0/FAE2: 20D1FD JSR $FDD1 //enable nmi, wait nmi
    C0/FAE5: 223A0EC1 JSR $C10E3A
    C0/FAE9: ADFB2C LDA $2CFB
    C0/FAEC: 890800 BIT #$0008
    C0/FAEF: F007 BEQ $FAF8
    C0/FAF1: 20A6FB JSR $FBA6
    C0/FAF4: 201FFC JSR $FC1F
    C0/FAF7: 60 RTS

    C0/F585: 5A PHY
    C0/F586: 48 PHA
    C0/F587: 29FF00 AND #$00FF
    C0/F58A: C90400 CMP #$0004 //Kanji
    C0/F58D: F023 BEQ $F5B2
    C0/F58F: C90500 CMP #$0005
    C0/F592: F01E BEQ $F5B2
    C0/F594: 68 PLA
    C0/F595: 29FF00 AND #$00FF
    C0/F598: C90400 CMP #$0004
    C0/F59B: 9062 BCC $F5FF
    C0/F59D: C90600 CMP #$0006 //MTE
    C0/F5A0: 9015 BCC $F5B7
    C0/F5A2: C91000 CMP #$0010
    C0/F5A5: B010 BCS $F5B7
    C0/F5A7: AE032D LDX $2D03 //txt ptr //text ID
    C0/F5AA: 8E092D STX $2D09
    C0/F5AD: 7A PLY
    C0/F5AE: 2012F7 JSR $F712 //MTE
    C0/F5B1: 60 RTS
    C0/F5B2: EE032D INC $2D03 //txt ptr //text ID
    C0/F5B5: 68 PLA
    C0/F5B6: EB XBA
    C0/F5B7: A2FA03 LDX #$03FA
    C0/F5BA: DF0026C1 CMP $C12600,X //look up table
    C0/F5BE: F025 BEQ $F5E5
    C0/F5C0: A20000 LDX #$0000
    C0/F5C3: A0B601 LDY #$01B6
    C0/F5C6: DA PHX
    C0/F5C7: DF0026C1 CMP $C12600,X //look up table
    C0/F5CB: F017 BEQ $F5E4
    C0/F5CD: BB TYX
    C0/F5CE: DF0026C1 CMP $C12600,X
    C0/F5D2: F00F BEQ $F5E3
    C0/F5D4: FA PLX
    C0/F5D5: E8 INX
    C0/F5D6: E8 INX
    C0/F5D7: 88 DEY
    C0/F5D8: 88 DEY
    C0/F5D9: D0EB BNE $F5C6
    C0/F5DB: A2B801 LDX #$01B8
    C0/F5DE: A0F803 LDY #$03F8
    C0/F5E1: 80E3 BRA $F5C6
    C0/F5E3: BB TYX
    C0/F5E4: 68 PLA
    C0/F5E5: AC0F2D LDY $2D0F
    C0/F5E8: ADF72C LDA $2CF7 //text obj flip
    C0/F5EB: 99EB41 STA $41EB,Y
    C0/F5EE: 1A INC A
    C0/F5EF: 99ED41 STA $41ED,Y
    C0/F5F2: 1A INC A
    C0/F5F3: 992B42 STA $422B,Y
    C0/F5F6: 1A INC A
    C0/F5F7: 992D42 STA $422D,Y
    C0/F5FA: 7A PLY
    C0/F5FB: 8A TXA //char id
    C0/F5FC: 4A LSR A
    C0/F5FD: 18 CLC
    C0/F5FE: 60 RTS

    C0/F9C1: 08 PHP
    C0/F9C2: 5A PHY
    C0/F9C3: C230 REP #$30
    C0/F9C5: 200EFA JSR $FA0E //stz $2D20: 1 char slot, draw char, shadow
    C0/F9C8: E220 SEP #$20
    C0/F9CA: A04000 LDY #$0040
    C0/F9CD: A20000 LDX #$0000
    C0/F9D0: A908 LDA #$08
    C0/F9D2: 48 PHA
    C0/F9D3: BD202D LDA $2D20,X
    C0/F9D6: 99202D STA $2D20,Y
    C0/F9D9: BD402D LDA $2D40,X
    C0/F9DC: 99302D STA $2D30,Y
    C0/F9DF: BD212D LDA $2D21,X
    C0/F9E2: 99402D STA $2D40,Y
    C0/F9E5: BD412D LDA $2D41,X
    C0/F9E8: 99502D STA $2D50,Y
    C0/F9EB: BD302D LDA $2D30,X
    C0/F9EE: 99602D STA $2D60,Y
    C0/F9F1: BD502D LDA $2D50,X
    C0/F9F4: 99702D STA $2D70,Y
    C0/F9F7: BD312D LDA $2D31,X
    C0/F9FA: 99802D STA $2D80,Y
    C0/F9FD: BD512D LDA $2D51,X
    C0/FA00: 99902D STA $2D90,Y
    C0/FA03: E8 INX
    C0/FA04: E8 INX
    C0/FA05: C8 INY
    C0/FA06: C8 INY
    C0/FA07: 68 PLA
    C0/FA08: 3A DEC A
    C0/FA09: D0C7 BNE $F9D2
    C0/FA0B: 7A PLY
    C0/FA0C: 28 PLP
    C0/FA0D: 60 RTS

    C0/F242: C230 REP #$30
    C0/F244: 48 PHA
    C0/F245: DA PHX
    C0/F246: 5A PHY
    C0/F247: AD1B2D LDA $2D1B
    C0/F24A: 29FF00 AND #$00FF
    C0/F24D: EB XBA
    C0/F24E: 4A LSR A
    C0/F24F: 4A LSR A
    C0/F250: 48 PHA
    C0/F251: AD1D2D LDA $2D1D
    C0/F254: 290F00 AND #$000F
    C0/F257: 0A ASL A
    C0/F258: 0A ASL A
    C0/F259: 18 CLC
    C0/F25A: 6301 ADC $01,S
    C0/F25C: AA TAX
    C0/F25D: 68 PLA
    C0/F25E: 08 PHP
    C0/F25F: E220 SEP #$20
    C0/F261: AD1D2D LDA $2D1D
    C0/F264: 290F AND #$0F
    C0/F266: 0A ASL A
    C0/F267: 48 PHA
    C0/F268: 0A ASL A
    C0/F269: 0A ASL A
    C0/F26A: 0A ASL A
    C0/F26B: 38 SEC
    C0/F26C: E301 SBC $01,S
    C0/F26E: 6DF52C ADC $2CF5 //text y pos
    C0/F271: 9DEC36 STA $36EC,X //write char x, y pos to oam table
    C0/F274: 68 PLA
    C0/F275: AD1C2D LDA $2D1C //line No.
    C0/F278: 0A ASL A
    C0/F279: 0A ASL A
    C0/F27A: 0A ASL A
    C0/F27B: 0A ASL A
    C0/F27C: 18 CLC
    C0/F27D: 6DF62C ADC $2CF6
    C0/F280: 9DED36 STA $36ED,X
    C0/F283: A900EB LDA #$00
    XBA
    C0/F286: AD1B2D LDA $2D1B
    C0/F289: 29070A AND #$07
    ASL
    C0/F28C: 0A ASL A
    C0/F28D: 0A ASL A
    C0/F28E: 0A ASL A
    C0/F28F: 18 CLC
    C0/F290: 6D1D2D ADC $2D1D
    C0/F293: 28 PLP
    C0/F294: A8 TAY
    C0/F295: 29F800 AND #$00F8
    C0/F298: 0A ASL A
    C0/F299: 0A ASL A
    C0/F29A: 48 PHA
    C0/F29B: 98 TYA
    C0/F29C: 290700 AND #$0007
    C0/F29F: 0A ASL A
    C0/F2A0: 0301 ORA $01,S
    C0/F2A2: 090034 ORA #$3400
    C0/F2A5: 0DF72C ORA $2CF7 //text obj flip
    C0/F2A8: 9DEE36 STA $36EE,X
    C0/F2AB: 68 PLA
    C0/F2AC: 20D1FD JSR $FDD1 //enable nmi, wait nmi
    C0/F2AF: 2065F7 JSR $F765 //dma oam gfx
    C0/F2B2: 209BFD JSR $FD9B //dma $7E36EC: dma table
    C0/F2B5: 203AFB JSR $FB3A
    C0/F2B8: 7A PLY
    C0/F2B9: FA PLX
    C0/F2BA: 68 PLA
    C0/F2BB: 60 RTS

     
    Chỉnh sửa cuối: 22/8/21
    tupac and Thita_vipho like this.
  2. SPC700

    SPC700 Legend of Zelda

    Tham gia ngày:
    1/10/20
    Bài viết:
    1,074
    Main text routine

    $C0EE89:
    1/ JSR $EEA3
    2/ JSR $EECF
    3/ JSR $EF5B
    4/ JSR $EF74
    RTL

    C0/EEA3: E220 SEP #$20
    C0/EEA5: C210 REP #$10
    C0/EEA7: A960 LDA #$60
    C0/EEA9: 1CFB2C TRB $2CFB
    C0/EEAC: 9C1C2D STZ $2D1C //line No.
    C0/EEAF: 9C1D2D STZ $2D1D
    C0/EEB2: 9C1B2D STZ $2D1B
    C0/EEB5: 9CFC2C STZ $2CFC
    C0/EEB8: A941 LDA #$41 //speed
    C0/EEBA: 8D1E2D STA $2D1E
    C0/EEBD: C220 REP #$20
    C0/EEBF: ADF12C LDA $2CF1
    C0/EEC2: 29FF3F AND #$3FFF
    C0/EEC5: 0A ASL A
    C0/EEC6: AA TAX
    C0/EEC7: BF002AC1 LDA $C12A00,X //Text pointer
    C0/EECB: 8D032D STA $2D03
    C0/EECE: 60 RTS

    C0/EECF: 08 PHP
    C0/EED0: E220 SEP #$20
    C0/EED2: A28010 LDX #$1080
    C0/EED5: ADFB2C LDA $2CFB
    C0/EED8: 8910 BIT #$10
    C0/EEDA: D003 BNE $EEDF
    C0/EEDC: A28000 LDX #$0080
    C0/EEDF: 8EFD2C STX $2CFD
    C0/EEE2: ADFB2C LDA $2CFB
    C0/EEE5: 8908 BIT #$08
    C0/EEE7: F005 BEQ $EEEE
    C0/EEE9: A90C LDA #$0C
    C0/EEEB: 0CFE2C TSB $2CFE
    C0/EEEE: 9C1F2D STZ $2D1F //frame background
    C0/EEF1: ADFB2C LDA $2CFB
    C0/EEF4: 8980 BIT #$80
    C0/EEF6: D003 BNE $EEFB
    C0/EEF8: CE1F2D DEC $2D1F //frame background
    C0/EEFB: A20021 LDX #$2100
    C0/EEFE: 8EF72C STX $2CF7 //text obj flip
    C0/EF01: A20068 LDX #$6800
    C0/EF04: 8E0D2D STX $2D0D //vram pos
    C0/EF07: A20020 LDX #$2000
    C0/EF0A: 8EDC41 STX $$41DC //tile value base
    C0/EF0D: A20078 LDX #$7800
    C0/EF10: 8E4241 STX $4142
    C0/EF13: C220 REP #$20
    C0/EF15: ADF52C LDA $2CF5 //text frame pos //text y pos
    C0/EF18: 2019FD JSR $FD19 //frame pos cal
    C0/EF1B: 28 PLP
    C0/EF1C: 60 RTS

    C0/EF5B: C230 REP #$30
    C0/EF5D: AD0B2D LDA $2D0B
    C0/EF60: 38 SEC
    C0/EF61: E94200 SBC #$0042
    C0/EF64: AA TAX
    C0/EF65: A01806 LDY #$0618
    C0/EF68: 22B80CC1 JSR $C10CB8 //Draw frame
    C0/EF6C: 20D1FD JSR $FDD1 //enable nmi, wait nmi
    C0/EF6F: 223A0EC1 JSR $C10E3A // DMA bg3 map
    C0/EF73: 60 RTS

    C1/0CB8: 5A PHY
    C1/0CB9: DA PHX
    C1/0CBA: BA TSX
    C1/0CBB: B401 LDY $01,X
    C1/0CBD: A90100 LDA #$0001
    C1/0CC0: 0DDC41 ORA $41DC
    C1/0CC3: 99EB41 STA $41EB,Y
    C1/0CC6: C8 INY
    C1/0CC7: C8 INY
    C1/0CC8: B503 LDA $03,X
    C1/0CCA: 29FF00 AND #$00FF
    C1/0CCD: DA PHX
    C1/0CCE: AA TAX
    C1/0CCF: A90200 LDA #$0002
    C1/0CD2: 0DDC41 ORA $41DC
    C1/0CD5: 99EB41 STA $41EB,Y
    C1/0CD8: C8 INY
    C1/0CD9: C8 INY
    C1/0CDA: CA DEX
    C1/0CDB: D0F8 BNE $0CD5
    C1/0CDD: FA PLX
    C1/0CDE: A90140 LDA #$4001
    C1/0CE1: 0DDC41 ORA $41DC
    C1/0CE4: 99EB41 STA $41EB,Y
    C1/0CE7: B501 LDA $01,X
    C1/0CE9: 18 CLC
    C1/0CEA: 694000 ADC #$0040
    C1/0CED: A8 TAY
    C1/0CEE: B504 LDA $04,X
    C1/0CF0: 29FF00 AND #$00FF
    C1/0CF3: 48 PHA
    C1/0CF4: 5A PHY
    C1/0CF5: A90300 LDA #$0003
    C1/0CF8: 0DDC41 ORA $41DC
    C1/0CFB: 99EB41 STA $41EB,Y
    C1/0CFE: C8 INY
    C1/0CFF: C8 INY
    C1/0D00: B503 LDA $03,X
    C1/0D02: 29FF00 AND #$00FF
    C1/0D05: DA PHX
    C1/0D06: AA TAX
    C1/0D07: A92000 LDA #$0020
    C1/0D0A: 0DDC41 ORA $41DC
    C1/0D0D: 99EB41 STA $41EB,Y
    C1/0D10: C8 INY
    C1/0D11: C8 INY
    C1/0D12: CA DEX
    C1/0D13: D0F8 BNE $0D0D
    C1/0D15: FA PLX
    C1/0D16: A90340 LDA #$4003
    C1/0D19: 0DDC41 ORA $41DC
    C1/0D1C: 99EB41 STA $41EB,Y
    C1/0D1F: 68 PLA
    C1/0D20: 18 CLC
    C1/0D21: 694000 ADC #$0040
    C1/0D24: A8 TAY
    C1/0D25: 68 PLA
    C1/0D26: 3A DEC A
    C1/0D27: D0CA BNE $0CF3
    C1/0D29: A90180 LDA #$8001
    C1/0D2C: 0DDC41 ORA $41DC
    C1/0D2F: 99EB41 STA $41EB,Y
    C1/0D32: C8 INY
    C1/0D33: C8 INY
    C1/0D34: B503 LDA $03,X
    C1/0D36: 29FF00 AND #$00FF
    C1/0D39: AA TAX
    C1/0D3A: A90280 LDA #$8002
    C1/0D3D: 0DDC41 ORA $41DC
    C1/0D40: 99EB41 STA $41EB,Y
    C1/0D43: C8 INY
    C1/0D44: C8 INY
    C1/0D45: CA DEX
    C1/0D46: D0F8 BNE $0D40
    C1/0D48: A901C0 LDA #$C001
    C1/0D4B: 0DDC41 ORA $41DC
    C1/0D4E: 99EB41 STA $41EB,Y
    C1/0D51: FA PLX
    C1/0D52: 7A PLY
    C1/0D53: 6B RTL

    C1/0E3A: 08 PHP
    C1/0E3B: E220 SEP #$20
    C1/0E3D: A980 LDA #$80
    C1/0E3F: 8F152100 STA $002115
    C1/0E43: A901 LDA #$01
    C1/0E45: 8F004300 STA $004300
    C1/0E49: A918 LDA #$18
    C1/0E4B: 8F014300 STA $004301
    C1/0E4F: A97E LDA #$7E
    C1/0E51: 8F044300 STA $004304
    C1/0E55: C220 REP #$20
    C1/0E57: A9EB41 LDA #$41EB
    C1/0E5A: 8F024300 STA $004302
    C1/0E5E: A90008 LDA #$0800
    C1/0E61: 8F054300 STA $004305
    C1/0E65: AD4241 LDA $4142
    C1/0E68: 8F162100 STA $002116
    C1/0E6C: E220 SEP #$20
    C1/0E6E: A901 LDA #$01
    C1/0E70: 8F0B4200 STA $00420B
    C1/0E74: 28 PLP
    C1/0E75: 6B RTL

    [​IMG]
    [​IMG]
     
  3. SPC700

    SPC700 Legend of Zelda

    Tham gia ngày:
    1/10/20
    Bài viết:
    1,074
    4/ JSR $EF74

    C0/EF74: C230 REP #$30
    C0/EF76: 3B TSC
    C0/EF77: 8DFF2C STA $2CFF //save stack
    C0/EF7A: AC0B2D LDY $2D0B
    C0/EF7D: AE132D LDX $2D13 //cursor pos
    C0/EF80: A90300 LDA #$0003 //max line
    C0/EF83: 48 PHA
    C0/EF84: 5A PHY
    C0/EF85: DA PHX
    C0/EF86: 20E7F0 JSR $F0E7 //draw bg text
    C0/EF89: 68 PLA
    C0/EF8A: 18 CLC
    C0/EF8B: 694000 ADC #$0040
    C0/EF8E: 8D152D STA $2D15 //bg3 map vram pos
    C0/EF91: AA TAX
    C0/EF92: 68 PLA
    C0/EF93: 18 CLC
    C0/EF94: 698000 ADC #$0080
    C0/EF97: 8D0B2D STA $2D0B
    C0/EF9A: 8D0F2D STA $2D0F
    C0/EF9D: A8 TAY
    C0/EF9E: A92000 LDA #$0020
    C0/EFA1: 2CFC2C BIT $2CFC
    C0/EFA4: F00D BEQ $EFB3
    C0/EFA6: 1CFC2C TRB $2CFC
    C0/EFA9: 20CDFA JSR $FACD //check to enable nmi
    C0/EFAC: 20FAF4 JSR $F4FA
    C0/EFAF: 68 PLA
    C0/EFB0: 4C74EF JMP $EF74
    C0/EFB3: A94000 LDA #$0040
    C0/EFB6: 2CFC2C BIT $2CFC
    C0/EFB9: F017 BEQ $EFD2
    C0/EFBB: 1CFC2C TRB $2CFC
    C0/EFBE: A90400 LDA #$0004
    C0/EFC1: 0CFC2C TSB $2CFC
    C0/EFC4: AD1B2D LDA $2D1B
    C0/EFC7: 2900FF AND #$FF00
    C0/EFCA: 0301 ORA $01,S
    C0/EFCC: 8D1B2D STA $2D1B
    C0/EFCF: 20CDFA JSR $FACD //check to enable nmi
    C0/EFD2: ADFC2C LDA $2CFC
    C0/EFD5: 898000 BIT #$0080
    C0/EFD8: F005 BEQ $EFDF
    C0/EFDA: 20CDFA JSR $FACD //check to enable nmi
    C0/EFDD: 68 PLA
    C0/EFDE: 60 RTS
    C0/EFDF: 68 PLA
    C0/EFE0: 3A DEC A
    C0/EFE1: D0A0 BNE $EF83
    C0/EFE3: 8A TXA
    C0/EFE4: 38 SEC
    C0/EFE5: E94000 SBC #$0040
    C0/EFE8: 8D152D STA $2D15 //bg3 map vram pos
    C0/EFEB: AA TAX
    C0/EFEC: 98 TYA
    C0/EFED: 38 SEC
    C0/EFEE: E98000 SBC #$0080
    C0/EFF1: 8D0B2D STA $2D0B
    C0/EFF4: 8D0F2D STA $2D0F
    C0/EFF7: A8 TAY
    C0/EFF8: A90400 LDA #$0004
    C0/EFFB: 2CFC2C BIT $2CFC
    C0/EFFE: F018 BEQ $F018
    C0/F000: 1CFC2C TRB $2CFC
    C0/F003: AD1B2D LDA $2D1B
    C0/F006: 290300 AND #$0003
    C0/F009: C90300 CMP #$0003
    C0/F00C: F020 BEQ $F02E
    C0/F00E: C90200 CMP #$0002
    C0/F011: F016 BEQ $F029
    C0/F013: C90100 CMP #$0001
    C0/F016: F00C BEQ $F024
    C0/F018: 20CDFA JSR $FACD //check to enable nmi
    C0/F01B: ADFC2C LDA $2CFC
    C0/F01E: 898000 BIT #$0080
    C0/F021: F001 BEQ $F024
    C0/F023: 60 RTS
    C0/F024: 20B2F4 JSR $F4B2
    C0/F027: B0EF BCS $F018
    C0/F029: 20B2F4 JSR $F4B2
    C0/F02C: B0EA BCS $F018
    C0/F02E: 20B2F4 JSR $F4B2
    C0/F031: 80E5 BRA $F018
    C0/F033: C230 REP #$30
    C0/F035: 3B TSC
    C0/F036: 8DFF2C STA $2CFF //save stack
    C0/F039: A90040 LDA #$4000
    C0/F03C: 8D0D2D STA $2D0D //vram pos
    C0/F03F: A90400 LDA #$0004 //max lines
    C0/F042: 48 PHA
    C0/F043: ADFC2C LDA $2CFC
    C0/F046: 898000 BIT #$0080 //end block
    C0/F049: D017 BNE $F062
    C0/F04B: 20D8F3 JSR $F3D8 //draw line
    C0/F04E: EE1C2D INC $2D1C //line No.
    C0/F051: EE1B2D INC $2D1B
    C0/F054: 2093F0 JSR $F093
    C0/F057: 9004 BCC $F05D
    C0/F059: 68 PLA
    C0/F05A: 4C33F0 JMP $F033
    C0/F05D: 68 PLA
    C0/F05E: 3A DEC A
    C0/F05F: D0E1 BNE $F042
    C0/F061: 48 PHA
    C0/F062: 68 PLA
    C0/F063: CE1C2D DEC $2D1C //line No.
    C0/F066: AD1B2D LDA $2D1B
    C0/F069: 2900FF AND #$FF00
    C0/F06C: 8D1B2D STA $2D1B
    C0/F06F: ADFC2C LDA $2CFC
    C0/F072: 898000 BIT #$0080
    C0/F075: D018 BNE $F08F
    C0/F077: 20B9F0 JSR $F0B9 //write table
    C0/F07A: 20D8F3 JSR $F3D8 //real draw char
    C0/F07D: AD1B2D LDA $2D1B
    C0/F080: 1A INC A
    C0/F081: 2907FF AND #$FF07
    C0/F084: 8D1B2D STA $2D1B
    C0/F087: 2093F0 JSR $F093
    C0/F08A: 90E3 BCC $F06F
    C0/F08C: 4C33F0 JMP $F033
    C0/F08F: 20CDFA JSR $FACD //check to enable nmi
    C0/F092: 60 RTS
    C0/F093: ADFC2C LDA $2CFC
    C0/F096: 892000 BIT #$0020
    C0/F099: F008 BEQ $F0A3
    C0/F09B: 20CDFA JSR $FACD //check to enable nmi
    C0/F09E: 2020F5 JSR $F520
    C0/F0A1: 38 SEC
    C0/F0A2: 60 RTS
    C0/F0A3: A94000 LDA #$0040
    C0/F0A6: 2CFC2C BIT $2CFC
    C0/F0A9: F00C BEQ $F0B7
    C0/F0AB: 1CFC2C TRB $2CFC
    C0/F0AE: A90400 LDA #$0004
    C0/F0B1: 0CFC2C TSB $2CFC
    C0/F0B4: 20CDFA JSR $FACD //check to enable nmi
    C0/F0B7: 18 CLC
    C0/F0B8: 60 RTS


    C0/F0E7: DA PHX
    C0/F0E8: 5A PHY
    C0/F0E9: A90300 LDA #$0003
    C0/F0EC: 1CFC2C TRB $2CFC
    C0/F0EF: 20BCF2 JSR $F2BC //bg text shori //txt shori
    C0/F0F2: 7A PLY
    C0/F0F3: FA PLX
    C0/F0F4: ADFB2C LDA $2CFB
    C0/F0F7: 890800 BIT #$0008
    C0/F0FA: D00D BNE $F109
    C0/F0FC: AD1E2D LDA $2D1E
    C0/F0FF: 898000 BIT #$0080
    C0/F102: D005 BNE $F109
    C0/F104: 890F00 BIT #$000F
    C0/F107: D006 BNE $F10F
    C0/F109: 20D1FD JSR $FDD1 //enable nmi
    C0/F10C: 2029F7 JSR $F729 //dma bg3 tileset
    C0/F10F: AD0D2D LDA $2D0D
    C0/F112: 18 CLC
    C0/F113: 698001 ADC #$0180
    C0/F116: C9006E CMP #$6E00
    C0/F119: D009 BNE $F124
    C0/F11B: A90021 LDA #$2100
    C0/F11E: 8DF72C STA $2CF7
    C0/F121: A90068 LDA #$6800
    C0/F124: 8D0D2D STA $2D0D
    C0/F127: AD0B2D LDA $2D0B
    C0/F12A: 18 CLC
    C0/F12B: 698000 ADC #$0080
    C0/F12E: 8D0B2D STA $2D0B
    C0/F131: 8D0F2D STA $2D0F
    C0/F134: AD132D LDA $2D13 //cursor pos
    C0/F137: 18 CLC
    C0/F138: 698000 ADC #$0080
    C0/F13B: 8D152D STA $2D15 //bg3 map vram pos
    C0/F13E: 60 RTS


    C0/F2BC: C230 REP #$30
    C0/F2BE: 3B TSC
    C0/F2BF: 8D012D STA $2D01
    C0/F2C2: EE1D2D INC $2D1D //char slot
    C0/F2C5: EE1C2D INC $2D1C //line No.
    C0/F2C8: A00000 LDY #$0000
    C0/F2CB: A90C00 LDA #$000C //char per line
    C0/F2CE: 48 PHA
    C0/F2CF: AE032D LDX $2D03 //txt ptr
    C0/F2D2: 8E032D STX $2D03 //txt ptr
    C0/F2D5: 2015F3 JSR $F315 //read text
    C0/F2D8: B0F8 BCS $F2D2
    C0/F2DA: 2085F5 JSR $F585 //char shori: kanji, kana
    C0/F2DD: B0F3 BCS $F2D2
    C0/F2DF: 20BDF7 JSR $F7BD //char render in buffer
    C0/F2E2: 20EBF1 JSR $F1EB //check to enable nmi, force blank , roll to wait
    C0/F2E5: AE032D LDX $2D03 //txt ptr
    C0/F2E8: E8 INX
    C0/F2E9: 8E032D STX $2D03 //txt ptr
    C0/F2EC: 8E052D STX $2D05
    C0/F2EF: 2015F3 JSR $F315 //read text
    C0/F2F2: B0F5 BCS $F2E9
    C0/F2F4: 2085F5 JSR $F585 //char shori: kanji, kana
    C0/F2F7: B0F0 BCS $F2E9
    C0/F2F9: 20C7F7 JSR $F7C7 //char render
    C0/F2FC: 20D4F1 JSR $F1D4 //check $2CFC to inc ptr
    C0/F2FF: 2034F4 JSR $F434 //inc var
    C0/F302: 68 PLA
    C0/F303: 3A DEC A
    C0/F304: D0C8 BNE $F2CE
    C0/F306: 207DF4 JSR $F47D //read txt, check end flag
    C0/F309: ADFC2C LDA $2CFC
    C0/F30C: 898000 BIT #$0080
    C0/F30F: D002 BNE $F313
    C0/F311: 38 SEC
    C0/F312: 60 RTS

    C0/F315: ADFC2C LDA $2CFC
    C0/F318: 890800 BIT #$0008
    C0/F31B: F008 BEQ $F325
    C0/F31D: ADF32C LDA $2CF3
    C0/F320: 8900C0 BIT #$C000
    C0/F323: D006 BNE $F32B
    C0/F325: BF002AC1 LDA $C12A00,X //read text
    C0/F329: 18 CLC
    C0/F32A: 60 RTS
    C0/F32B: BF0000CF LDA $CF0000,X
    C0/F32F: 89FF00 BIT #$00FF
    C0/F332: D016 BNE $F34A
    C0/F334: AD192D LDA $2D19
    C0/F337: 290F00 AND #$000F
    C0/F33A: C90600 CMP #$0006
    C0/F33D: D005 BNE $F344
    C0/F33F: A90000 LDA #$0000
    C0/F342: 18 CLC
    C0/F343: 60 RTS
    C0/F344: CE032D DEC $2D03 //txt ptr
    C0/F347: A92000 LDA #$0020
    C0/F34A: 48 PHA
    C0/F34B: 2900FF AND #$FF00
    C0/F34E: C900DF CMP #$DF00
    C0/F351: D006 BNE $F359
    C0/F353: 68 PLA
    C0/F354: 29FF00 AND #$00FF
    C0/F357: 8011 BRA $F36A
    C0/F359: C900DE CMP #$DE00
    C0/F35C: D015 BNE $F373
    C0/F35E: 68 PLA
    C0/F35F: 29FF00 AND #$00FF
    C0/F362: C9CA00 CMP #$00CA
    C0/F365: 9003 BCC $F36A
    C0/F367: E90500 SBC #$0005
    C0/F36A: 18 CLC
    C0/F36B: 692900 ADC #$0029
    C0/F36E: EE032D INC $2D03 //txt ptr
    C0/F371: 8047 BRA $F3BA
    C0/F373: 68 PLA
    C0/F374: 29FF00 AND #$00FF
    C0/F377: C92000 CMP #$0020
    C0/F37A: D005 BNE $F381
    C0/F37C: A9FD01 LDA #$01FD
    C0/F37F: 8044 BRA $F3C5
    C0/F381: C9B000 CMP #$00B0
    C0/F384: D005 BNE $F38B
    C0/F386: A9A100 LDA #$00A1
    C0/F389: 803A BRA $F3C5
    C0/F38B: C9A000 CMP #$00A0
    C0/F38E: B00F BCS $F39F
    C0/F390: AD1A2D LDA $2D1A
    C0/F393: 495000 EOR #$0050
    C0/F396: 8D1A2D STA $2D1A
    C0/F399: AE032D LDX $2D03 //txt ptr
    C0/F39C: E8 INX
    C0/F39D: 38 SEC
    C0/F39E: 60 RTS
    C0/F39F: C9DD00 CMP #$00DD
    C0/F3A2: D001 BNE $F3A5
    C0/F3A4: 1A INC A
    C0/F3A5: C9B100 CMP #$00B1
    C0/F3A8: B010 BCS $F3BA
    C0/F3AA: C9A600 CMP #$00A6
    C0/F3AD: D004 BNE $F3B3
    C0/F3AF: 38 SEC
    C0/F3B0: E91B00 SBC #$001B
    C0/F3B3: 18 CLC
    C0/F3B4: 695100 ADC #$0051
    C0/F3B7: 29FF00 AND #$00FF
    C0/F3BA: 08 PHP
    C0/F3BB: E220 SEP #$20
    C0/F3BD: 38 SEC
    C0/F3BE: E9B1 SBC #$B1
    C0/F3C0: 18 CLC
    C0/F3C1: 6D1A2D ADC $2D1A
    C0/F3C4: 28 PLP
    C0/F3C5: 0A ASL A
    C0/F3C6: DA PHX
    C0/F3C7: AA TAX
    C0/F3C8: BF0026C1 LDA $C12600,X
    C0/F3CC: 8900 BIT #$00
    C0/F3CE: 0FF004CE ORA $CE04F0
    C0/F3D2: 032D ORA $2D,S
    C0/F3D4: EB XBA
    C0/F3D5: FA PLX
    C0/F3D6: 18 CLC
    C0/F3D7: 60 RTS

    C0/F315: ADFC2C LDA $2CFC
    C0/F318: 890800 BIT #$0008
    C0/F31B: F008 BEQ $F325
    C0/F31D: ADF32C LDA $2CF3
    C0/F320: 8900C0 BIT #$C000
    C0/F323: D006 BNE $F32B
    C0/F325: BF002AC1 LDA $C12A00,X //read text
    C0/F329: 18 CLC
    C0/F32A: 60 RTS

    C0/F32B: BF0000CF LDA $CF0000,X
    C0/F32F: 89FF00 BIT #$00FF
    C0/F332: D016 BNE $F34A
    C0/F334: AD192D LDA $2D19
    C0/F337: 290F00 AND #$000F
    C0/F33A: C90600 CMP #$0006
    C0/F33D: D005 BNE $F344
    C0/F33F: A90000 LDA #$0000
    C0/F342: 18 CLC
    C0/F343: 60 RTS
    C0/F344: CE032D DEC $2D03 //txt ptr
    C0/F347: A92000 LDA #$0020
    C0/F34A: 48 PHA
    C0/F34B: 2900FF AND #$FF00
    C0/F34E: C900DF CMP #$DF00
    C0/F351: D006 BNE $F359
    C0/F353: 68 PLA
    C0/F354: 29FF00 AND #$00FF
    C0/F357: 8011 BRA $F36A
    C0/F359: C900DE CMP #$DE00
    C0/F35C: D015 BNE $F373
    C0/F35E: 68 PLA
    C0/F35F: 29FF00 AND #$00FF
    C0/F362: C9CA00 CMP #$00CA
    C0/F365: 9003 BCC $F36A
    C0/F367: E90500 SBC #$0005
    C0/F36A: 18 CLC
    C0/F36B: 692900 ADC #$0029
    C0/F36E: EE032D INC $2D03 //txt ptr
    C0/F371: 8047 BRA $F3BA
    C0/F373: 68 PLA
    C0/F374: 29FF00 AND #$00FF
    C0/F377: C92000 CMP #$0020
    C0/F37A: D005 BNE $F381
    C0/F37C: A9FD01 LDA #$01FD
    C0/F37F: 8044 BRA $F3C5
    C0/F381: C9B000 CMP #$00B0
    C0/F384: D005 BNE $F38B
    C0/F386: A9A100 LDA #$00A1
    C0/F389: 803A BRA $F3C5
    C0/F38B: C9A000 CMP #$00A0
    C0/F38E: B00F BCS $F39F
    C0/F390: AD1A2D LDA $2D1A
    C0/F393: 495000 EOR #$0050
    C0/F396: 8D1A2D STA $2D1A
    C0/F399: AE032D LDX $2D03 //txt ptr
    C0/F39C: E8 INX
    C0/F39D: 38 SEC
    C0/F39E: 60 RTS
    C0/F39F: C9DD00 CMP #$00DD
    C0/F3A2: D001 BNE $F3A5
    C0/F3A4: 1A INC A
    C0/F3A5: C9B100 CMP #$00B1
    C0/F3A8: B010 BCS $F3BA
    C0/F3AA: C9A600 CMP #$00A6
    C0/F3AD: D004 BNE $F3B3
    C0/F3AF: 38 SEC
    C0/F3B0: E91B00 SBC #$001B
    C0/F3B3: 18 CLC
    C0/F3B4: 695100 ADC #$0051
    C0/F3B7: 29FF00 AND #$00FF
    C0/F3BA: 08 PHP
    C0/F3BB: E220 SEP #$20
    C0/F3BD: 38 SEC
    C0/F3BE: E9B1 SBC #$B1
    C0/F3C0: 18 CLC
    C0/F3C1: 6D1A2D ADC $2D1A
    C0/F3C4: 28 PLP
    C0/F3C5: 0A ASL A
    C0/F3C6: DA PHX
    C0/F3C7: AA TAX
    C0/F3C8: BF0026C1 LDA $C12600,X
    C0/F3CC: 8900 BIT #$00
    C0/F3CE: 0FF004CE ORA $CE04F0
    C0/F3D2: 032D ORA $2D,S
    C0/F3D4: EB XBA
    C0/F3D5: FA PLX
    C0/F3D6: 18 CLC
    C0/F3D7: 60 RTS

    C0/F585: 5A PHY
    C0/F586: 48 PHA
    C0/F587: 29FF00 AND #$00FF
    C0/F58A: C90400 CMP #$0004 //Kanji
    C0/F58D: F023 BEQ $F5B2
    C0/F58F: C90500 CMP #$0005
    C0/F592: F01E BEQ $F5B2
    C0/F594: 68 PLA
    C0/F595: 29FF00 AND #$00FF
    C0/F598: C90400 CMP #$0004
    C0/F59B: 9062 BCC $F5FF
    C0/F59D: C90600 CMP #$0006 //MTE
    C0/F5A0: 9015 BCC $F5B7
    C0/F5A2: C91000 CMP #$0010
    C0/F5A5: B010 BCS $F5B7
    C0/F5A7: AE032D LDX $2D03 //txt ptr //text ID
    C0/F5AA: 8E092D STX $2D09
    C0/F5AD: 7A PLY
    C0/F5AE: 2012F7 JSR $F712 //MTE
    C0/F5B1: 60 RTS
    C0/F5B2: EE032D INC $2D03 //txt ptr //text ID
    C0/F5B5: 68 PLA
    C0/F5B6: EB XBA
    C0/F5B7: A2FA03 LDX #$03FA
    C0/F5BA: DF0026C1 CMP $C12600,X //look up table
    C0/F5BE: F025 BEQ $F5E5
    C0/F5C0: A20000 LDX #$0000
    C0/F5C3: A0B601 LDY #$01B6
    C0/F5C6: DA PHX
    C0/F5C7: DF0026C1 CMP $C12600,X //look up table
    C0/F5CB: F017 BEQ $F5E4
    C0/F5CD: BB TYX
    C0/F5CE: DF0026C1 CMP $C12600,X
    C0/F5D2: F00F BEQ $F5E3
    C0/F5D4: FA PLX
    C0/F5D5: E8 INX
    C0/F5D6: E8 INX
    C0/F5D7: 88 DEY
    C0/F5D8: 88 DEY
    C0/F5D9: D0EB BNE $F5C6
    C0/F5DB: A2B801 LDX #$01B8
    C0/F5DE: A0F803 LDY #$03F8
    C0/F5E1: 80E3 BRA $F5C6
    C0/F5E3: BB TYX
    C0/F5E4: 68 PLA
    C0/F5E5: AC0F2D LDY $2D0F
    C0/F5E8: ADF72C LDA $2CF7 //text obj flip
    C0/F5EB: 99EB41 STA $41EB,Y
    C0/F5EE: 1A INC A
    C0/F5EF: 99ED41 STA $41ED,Y
    C0/F5F2: 1A INC A
    C0/F5F3: 992B42 STA $422B,Y
    C0/F5F6: 1A INC A
    C0/F5F7: 992D42 STA $422D,Y
    C0/F5FA: 7A PLY
    C0/F5FB: 8A TXA //char id
    C0/F5FC: 4A LSR A
    C0/F5FD: 18 CLC
    C0/F5FE: 60 RTS
    C0/F5FF: 0A ASL A
    C0/F600: AA TAX
    C0/F601: FC0EF6 JSR ($F60E,X)
    C0/F604: 9002 BCC $F608
    C0/F606: 7A PLY
    C0/F607: 60 RTS
    C0/F608: AD012D LDA $2D01
    C0/F60B: 1B TCS
    C0/F60C: 18 CLC
    C0/F60D: 60 RTS
    C0/F60E:
    dw $F616
    dw $F646
    dw $F654
    dw $F686
    C0/F616: ADFC2C LDA $2CFC
    C0/F619: 891000 BIT #$0010
    C0/F61C: D010 BNE $F62E
    C0/F61E: 890800 BIT #$0008
    C0/F621: D017 BNE $F63A
    C0/F623: A98000 LDA #$0080
    C0/F626: 0CFC2C TSB $2CFC
    C0/F629: 20EBF6 JSR $F6EB
    C0/F62C: 18 CLC
    C0/F62D: 60 RTS
    C0/F62E: A91000 LDA #$0010
    C0/F631: 1CFC2C TRB $2CFC
    C0/F634: AE092D LDX $2D09
    C0/F637: E8 INX
    C0/F638: 38 SEC
    C0/F639: 60 RTS
    C0/F63A: A90800 LDA #$0008
    C0/F63D: 1CFC2C TRB $2CFC
    C0/F640: AE072D LDX $2D07
    C0/F643: E8 INX
    C0/F644: 38 SEC
    C0/F645: 60 RTS
    C0/F646: EE032D INC $2D03 //txt ptr
    C0/F649: A92000 LDA #$0020
    C0/F64C: 0CFC2C TSB $2CFC
    C0/F64F: 20EBF6 JSR $F6EB
    C0/F652: 18 CLC
    C0/F653: 60 RTS
    C0/F654: EE032D INC $2D03 //txt ptr
    C0/F657: A94000 LDA #$0040
    C0/F65A: 0CFC2C TSB $2CFC
    C0/F65D: ADF72C LDA $2CF7 //text obj flip
    C0/F660: 2900FC AND #$FC00
    C0/F663: 8DF72C STA $2CF7 //text obj flip
    C0/F666: AD1C2D LDA $2D1C //line No.
    C0/F669: 290300 AND #$0003
    C0/F66C: 0A ASL A
    C0/F66D: 0A ASL A
    C0/F66E: 0A ASL A
    C0/F66F: 0A ASL A
    C0/F670: 48 PHA
    C0/F671: 0A ASL A
    C0/F672: 0A ASL A
    C0/F673: 38 SEC
    C0/F674: E301 SBC $01,S
    C0/F676: 18 CLC
    C0/F677: 690001 ADC #$0100
    C0/F67A: 0DF72C ORA $2CF7 //text obj flip
    C0/F67D: 8DF72C STA $2CF7 //text obj flip
    C0/F680: 68 PLA
    C0/F681: 20EBF6 JSR $F6EB
    C0/F684: 18 CLC
    C0/F685: 60 RTS
    C0/F686: 08 PHP
    C0/F687: E220 SEP #$20
    C0/F689: AE032D LDX $2D03 //txt ptr
    C0/F68C: E8 INX
    C0/F68D: 8E072D STX $2D07
    C0/F690: BF002AC1 LDA $C12A00,X
    C0/F694: 290F AND #$0F
    C0/F696: C90E CMP #$0E
    C0/F698: F014 BEQ $F6AE
    C0/F69A: C90F CMP #$0F
    C0/F69C: F02C BEQ $F6CA
    C0/F69E: 48 PHA
    C0/F69F: AD1E2D LDA $2D1E
    C0/F6A2: 29C0 AND #$C0
    C0/F6A4: 0301 ORA $01,S
    C0/F6A6: 8D1E2D STA $2D1E
    C0/F6A9: 68 PLA
    C0/F6AA: E8 INX
    C0/F6AB: 28 PLP
    C0/F6AC: 38 SEC
    C0/F6AD: 60 RTS

    C0/F7BD: AA TAX
    C0/F7BE: ADFC2C LDA $2CFC
    C0/F7C1: 290300 AND #$0003
    C0/F7C4: 0A ASL A
    C0/F7C5: 800C BRA $F7D3
    C0/F7C7: AA TAX
    C0/F7C8: ADFC2C LDA $2CFC
    C0/F7CB: 290300 AND #$0003
    C0/F7CE: 18 CLC
    C0/F7CF: 690300 ADC #$0003
    C0/F7D2: 0A ASL A
    C0/F7D3: 5A PHY
    C0/F7D4: 48 PHA
    C0/F7D5: AD1F2D LDA $2D1F //frame background
    C0/F7D8: 29FF00 AND #$00FF //Frame background
    C0/F7DB: EB XBA
    C0/F7DC: 99202D STA $2D20,Y
    C0/F7DF: 99222D STA $2D22,Y
    C0/F7E2: 99302D STA $2D30,Y
    C0/F7E5: 99322D STA $2D32,Y
    C0/F7E8: 994C2D STA $2D4C,Y
    C0/F7EB: 994E2D STA $2D4E,Y
    C0/F7EE: 995C2D STA $2D5C,Y
    C0/F7F1: 995E2D STA $2D5E,Y
    C0/F7F4: 8A TXA
    C0/F7F5: 0A ASL A
    C0/F7F6: 0A ASL A
    C0/F7F7: 0A ASL A
    C0/F7F8: 48 PHA
    C0/F7F9: 0A ASL A
    C0/F7FA: 0A ASL A
    C0/F7FB: 38 SEC
    C0/F7FC: E301 SBC $01,S
    C0/F7FE: FA PLX
    C0/F7FF: FA PLX
    C0/F800: FC05F8 JSR ($F805,X)
    C0/F803: 7A PLY
    C0/F804: 60 RTS
    C0/F805:
    dw $F811
    dw $F893
    dw $F914
    dw $F956
    dw $F8E3
    dw $F950

    C0/F811: AA TAX
    C0/F812: 08 PHP
    C0/F813: E220 SEP #$20
    C0/F815: A906 LDA #$06
    C0/F817: 48 PHA
    C0/F818: BF00D0CF LDA $CFD000,X
    C0/F81C: 99242D STA $2D24,Y
    C0/F81F: AD1F2D LDA $2D1F //frame background
    C0/F822: 99252D STA $2D25,Y
    C0/F825: BF01D0CF LDA $CFD001,X
    C0/F829: 99342D STA $2D34,Y
    C0/F82C: AD1F2D LDA $2D1F //frame background
    C0/F82F: 99352D STA $2D35,Y
    C0/F832: BF0CD0CF LDA $CFD00C,X
    C0/F836: 99402D STA $2D40,Y
    C0/F839: AD1F2D LDA $2D1F //frame background
    C0/F83C: 99412D STA $2D41,Y
    C0/F83F: BF0DD0CF LDA $CFD00D,X
    C0/F843: 99502D STA $2D50,Y
    C0/F846: AD1F2D LDA $2D1F //frame background
    C0/F849: 99512D STA $2D51,Y
    C0/F84C: E8 INX
    C0/F84D: E8 INX
    C0/F84E: C8 INY
    C0/F84F: C8 INY
    C0/F850: 68 PLA
    C0/F851: 3A DEC A
    C0/F852: D0C3 BNE $F817
    C0/F854: 28 PLP
    C0/F855: 60 RTS

    C0/F856: AA TAX
    C0/F857: 08 PHP
    C0/F858: E220 SEP #$20
    C0/F85A: A906 LDA #$06
    C0/F85C: 48 PHA
    C0/F85D: BF00D0CF LDA $CFD000,X
    C0/F861: 29F0 AND #$F0
    C0/F863: 4A LSR A
    C0/F864: 4A LSR A
    C0/F865: 4A LSR A
    C0/F866: 4A LSR A
    C0/F867: 19342D ORA $2D34,Y
    C0/F86A: 99342D STA $2D34,Y
    C0/F86D: AD1F2D LDA $2D1F //frame background
    C0/F870: 99352D STA $2D35,Y
    C0/F873: BF0CD0CF LDA $CFD00C,X
    C0/F877: 29F0 AND #$F0
    C0/F879: 4A LSR A
    C0/F87A: 4A LSR A
    C0/F87B: 4A LSR A
    C0/F87C: 4A LSR A
    C0/F87D: 19502D ORA $2D50,Y
    C0/F880: 99502D STA $2D50,Y
    C0/F883: AD1F2D LDA $2D1F //frame background
    C0/F886: 99512D STA $2D51,Y
    C0/F889: E8 INX
    C0/F88A: E8 INX
    C0/F88B: C8 INY
    C0/F88C: C8 INY
    C0/F88D: 68 PLA
    C0/F88E: 3A DEC A
    C0/F88F: D0CB BNE $F85C
    C0/F891: 28 PLP
    C0/F892: 60 RTS
    fun1:
    C0/F893: AA TAX
    C0/F894: 08 PHP
    C0/F895: E220 SEP #$20
    C0/F897: A906 LDA #$06
    C0/F899: 48 PHA
    C0/F89A: C220 REP #$20
    C0/F89C: BF00D0CF LDA $CFD000,X
    C0/F8A0: EB XBA
    C0/F8A1: 0A ASL A
    C0/F8A2: 0A ASL A
    C0/F8A3: 0A ASL A
    C0/F8A4: 0A ASL A
    C0/F8A5: EB XBA
    C0/F8A6: E220 SEP #$20
    C0/F8A8: 99242D STA $2D24,Y
    C0/F8AB: AD1F2D LDA $2D1F //frame background
    C0/F8AE: 99252D STA $2D25,Y
    C0/F8B1: C220 REP #$20
    C0/F8B3: BF0CD0CF LDA $CFD00C,X
    C0/F8B7: EB XBA
    C0/F8B8: 0A ASL A
    C0/F8B9: 0A ASL A
    C0/F8BA: 0A ASL A
    C0/F8BB: 0A ASL A
    C0/F8BC: EB XBA
    C0/F8BD: E220 SEP #$20
    C0/F8BF: 99402D STA $2D40,Y
    C0/F8C2: AD1F2D LDA $2D1F //frame background
    C0/F8C5: 99412D STA $2D41,Y
    C0/F8C8: A900 LDA #$00
    C0/F8CA: 99342D STA $2D34,Y
    C0/F8CD: 99502D STA $2D50,Y
    C0/F8D0: AD1F2D LDA $2D1F //frame background
    C0/F8D3: 99352D STA $2D35,Y
    C0/F8D6: 99512D STA $2D51,Y
    C0/F8D9: E8 INX
    C0/F8DA: E8 INX
    C0/F8DB: C8 INY
    C0/F8DC: C8 INY
    C0/F8DD: 68 PLA
    C0/F8DE: 3A DEC A
    C0/F8DF: D0B8 BNE $F899
    C0/F8E1: 28 PLP
    C0/F8E2: 60 RTS
    C0/F8E3: AA TAX
    C0/F8E4: 08 PHP
    C0/F8E5: E220 SEP #$20
    C0/F8E7: A906 LDA #$06
    C0/F8E9: 48 PHA
    C0/F8EA: BF00D0CF LDA $CFD000,X
    C0/F8EE: 19342D ORA $2D34,Y
    C0/F8F1: 99342D STA $2D34,Y
    C0/F8F4: AD1F2D LDA $2D1F //frame background
    C0/F8F7: 99352D STA $2D35,Y
    C0/F8FA: BF0CD0CF LDA $CFD00C,X
    C0/F8FE: 19502D ORA $2D50,Y
    C0/F901: 99502D STA $2D50,Y
    C0/F904: AD1F2D LDA $2D1F //frame background
    C0/F907: 99512D STA $2D51,Y
    C0/F90A: E8 INX
    C0/F90B: E8 INX
    C0/F90C: C8 INY
    C0/F90D: C8 INY
    C0/F90E: 68 PLA
    C0/F90F: 3A DEC A
    C0/F910: D0D7 BNE $F8E9
    C0/F912: 28 PLP
    C0/F913: 60 RTS
    C0/F914: AA TAX
    C0/F915: 08 PHP
    C0/F916: E220 SEP #$20
    C0/F918: A906 LDA #$06
    C0/F91A: 48 PHA
    C0/F91B: BF01D0CF LDA $CFD001,X
    C0/F91F: 99242D STA $2D24,Y
    C0/F922: AD1F2D LDA $2D1F //frame background
    C0/F925: 99252D STA $2D25,Y
    C0/F928: BF0DD0CF LDA $CFD00D,X
    C0/F92C: 99402D STA $2D40,Y
    C0/F92F: AD1F2D LDA $2D1F //frame background
    C0/F932: 99412D STA $2D41,Y
    C0/F935: A900 LDA #$00
    C0/F937: 99342D STA $2D34,Y
    C0/F93A: 99502D STA $2D50,Y
    C0/F93D: AD1F2D LDA $2D1F //frame background
    C0/F940: 99352D STA $2D35,Y
    C0/F943: 99512D STA $2D51,Y
    C0/F946: E8 INX
    C0/F947: E8 INX
    C0/F948: C8 INY
    C0/F949: C8 INY
    C0/F94A: 68 PLA
    C0/F94B: 3A DEC A
    C0/F94C: D0CC BNE $F91A
    C0/F94E: 28 PLP
    C0/F94F: 60 RTS
    C0/F950: AA TAX
    C0/F951: 08 PHP
    C0/F952: E220 SEP #$20
    C0/F954: A906 LDA #$06
    C0/F956: 48 PHA
    C0/F957: C220 REP #$20
    C0/F959: BF00D0CF LDA $CFD000,X
    C0/F95D: EB XBA
    C0/F95E: 4A LSR A
    C0/F95F: 4A LSR A
    C0/F960: 4A LSR A
    C0/F961: 4A LSR A
    C0/F962: EB XBA
    C0/F963: E220 SEP #$20
    C0/F965: 19242D ORA $2D24,Y
    C0/F968: 99242D STA $2D24,Y
    C0/F96B: AD1F2D LDA $2D1F //frame background
    C0/F96E: 99252D STA $2D25,Y
    C0/F971: C220 REP #$20
    C0/F973: BF0CD0CF LDA $CFD00C,X
    C0/F977: EB XBA
    C0/F978: 4A LSR A
    C0/F979: 4A LSR A
    C0/F97A: 4A LSR A
    C0/F97B: 4A LSR A
    C0/F97C: EB XBA
    C0/F97D: E220 SEP #$20
    C0/F97F: 19402D ORA $2D40,Y
    C0/F982: 99402D STA $2D40,Y
    C0/F985: AD1F2D LDA $2D1F //frame background
    C0/F988: 99412D STA $2D41,Y
    C0/F98B: C220 REP #$20
    C0/F98D: BF00D0CF LDA $CFD000,X
    C0/F991: EB XBA
    C0/F992: 4A LSR A
    C0/F993: 4A LSR A
    C0/F994: 4A LSR A
    C0/F995: 4A LSR A
    C0/F996: E220 SEP #$20
    C0/F998: 99342D STA $2D34,Y
    C0/F99B: AD1F2D LDA $2D1F //frame background
    C0/F99E: 99352D STA $2D35,Y
    C0/F9A1: C220 REP #$20
    C0/F9A3: BF0CD0CF LDA $CFD00C,X
    C0/F9A7: EB XBA
    C0/F9A8: 4A LSR A
    C0/F9A9: 4A LSR A
    C0/F9AA: 4A LSR A
    C0/F9AB: 4A LSR A
    C0/F9AC: E220 SEP #$20
    C0/F9AE: 99502D STA $2D50,Y
    C0/F9B1: AD1F2D LDA $2D1F //frame background
    C0/F9B4: 99512D STA $2D51,Y
    C0/F9B7: E8 INX
    C0/F9B8: E8 INX
    C0/F9B9: C8 INY
    C0/F9BA: C8 INY
    C0/F9BB: 68 PLA
    C0/F9BC: 3A DEC A
    C0/F9BD: D097 BNE $F956
    C0/F9BF: 28 PLP
    C0/F9C0: 60 RTS


    C0/F1D4: ADFC2C LDA $2CFC
    C0/F1D7: 290300 AND #$0003
    C0/F1DA: C90200 CMP #$0002
    C0/F1DD: D005 BNE $F1E4
    C0/F1DF: EE032D INC $2D03
    C0/F1E2: 8007 BRA $F1EB
    C0/F1E4: AD052D LDA $2D05
    C0/F1E7: 8D032D STA $2D03
    C0/F1EA: 60 RTS

    C0/F1EB: AD1E2D LDA $2D1E
    C0/F1EE: 898000 BIT #$0080
    C0/F1F1: F001 BEQ $F1F4
    C0/F1F3: 60 RTS
    C0/F1F4: 890F00 BIT #$000F
    C0/F1F7: D001 BNE $F1FA
    C0/F1F9: 60 RTS
    C0/F1FA: 48 PHA
    C0/F1FB: DA PHX
    C0/F1FC: 5A PHY
    C0/F1FD: AC0F2D LDY $2D0F
    C0/F200: AE152D LDX $2D15 //bg3 map vram pos
    C0/F203: 20D1FD JSR $FDD1 //enable nmi, wait nmi
    C0/F206: 2242EDC0 JSL $C0ED42 //force blank
    C0/F20A: 2029F7 JSR $F729 //dma bg3 tileset
    C0/F20D: 8A TXA
    C0/F20E: 8F162100 STA $002116 //write map
    C0/F212: B9EB41 LDA $41EB,Y
    C0/F215: 8F182100 STA $002118
    C0/F219: B9ED41 LDA $41ED,Y
    C0/F21C: 8F182100 STA $002118
    C0/F220: 8A TXA
    C0/F221: 18 CLC
    C0/F222: 692000 ADC #$0020
    C0/F225: 8F162100 STA $002116
    C0/F229: B92B42 LDA $422B,Y
    C0/F22C: 8F182100 STA $002118
    C0/F230: B92D42 LDA $422D,Y
    C0/F233: 8F182100 STA $002118
    C0/F237: 2233EDC0 JSL $C0ED33 //restore brighness
    C0/F23B: 203AFB JSR $FB3A //roll to wait
    C0/F23E: 7A PLY
    C0/F23F: FA PLX
    C0/F240: 68 PLA
    C0/F241: 60 RTS

    C0/F434: E220 SEP #$20
    C0/F436: ADFC2C LDA $2CFC
    C0/F439: 1A INC A
    C0/F43A: 1A INC A
    C0/F43B: 2903 AND #$03
    C0/F43D: F001 BEQ $F440
    C0/F43F: 3A DEC A
    C0/F440: 48 PHA
    C0/F441: A903 LDA #$03
    C0/F443: 1CFC2C TRB $2CFC
    C0/F446: 68 PLA
    C0/F447: 0CFC2C TSB $2CFC
    C0/F44A: C220 REP #$20
    C0/F44C: ADF72C LDA $2CF7
    C0/F44F: 18 CLC
    C0/F450: 690400 ADC #$0004
    C0/F453: 89FF03 BIT #$03FF
    C0/F456: D003 BNE $F45B
    C0/F458: A90001 LDA #$0100
    C0/F45B: 8DF72C STA $2CF7
    C0/F45E: 98 TYA
    C0/F45F: 18 CLC
    C0/F460: 694000 ADC #$0040
    C0/F463: A8 TAY
    C0/F464: EE152D INC $2D15 //bg3 map vram pos
    C0/F467: EE152D INC $2D15 //bg3 map vram pos
    C0/F46A: EE0F2D INC $2D0F
    C0/F46D: EE0F2D INC $2D0F
    C0/F470: EE0F2D INC $2D0F
    C0/F473: EE0F2D INC $2D0F
    C0/F476: EE1D2D INC $2D1D
    C0/F479: EE192D INC $2D19
    C0/F47C: 60 RTS

    C0/F729: 08 PHP
    C0/F72A: E220 SEP #$20
    C0/F72C: A980 LDA #$80
    C0/F72E: 8F152100 STA $002115
    C0/F732: A901 LDA #$01
    C0/F734: 8F004300 STA $004300
    C0/F738: A918 LDA #$18
    C0/F73A: 8F014300 STA $004301
    C0/F73E: A97E LDA #$7E
    C0/F740: 8F044300 STA $004304
    C0/F744: C220 REP #$20
    C0/F746: A9202D LDA #$2D20
    C0/F749: 8F024300 STA $004302
    C0/F74D: AD0D2D LDA $2D0D //vram pos
    C0/F750: 8F162100 STA $002116
    C0/F754: A90003 LDA #$0300
    C0/F757: 8F054300 STA $004305
    C0/F75B: E220 SEP #$20
    C0/F75D: A901 LDA #$01
    C0/F75F: 8F0B4200 STA $00420B
    C0/F763: 28 PLP
    C0/F764: 60 RTS

    C0/FDD1: 08 PHP
    C0/FDD2: E220 SEP #$20
    C0/FDD4: 58 CLI
    C0/FDD5: 48 PHA
    C0/FDD6: AF004200 LDA $004200
    C0/FDDA: 0981 ORA #$81
    C0/FDDC: 8F004200 STA $004200 //enable nmi
    C0/FDE0: A900 LDA #$00
    C0/FDE2: 2281EDC0 JSR $C0ED81 //compare with $7E2050: wait nmi
    C0/FDE6: 68 PLA
    C0/FDE7: 28 PLP
    C0/FDE8: 60 RTS

    C0/ED42: 08 PHP
    C0/ED43: E220 SEP #$20
    C0/ED45: 48 PHA
    C0/ED46: A98F LDA #$8F
    C0/ED48: 8F002100 STA $002100
    C0/ED4C: 68 PLA
    C0/ED4D: 28 PLP
    C0/ED4E: 6B RTL

    C0/FB3A: AD1E2D LDA $2D1E
    C0/FB3D: 290F00 AND #$000F
    C0/FB40: 48 PHA
    C0/FB41: 22B0FEC0 JSL $C0FEB0 //rol to wait
    C0/FB45: 2CFD2C BIT $2CFD
    C0/FB48: F040 BEQ $FB8A
    C0/FB4A: 890010 BIT #$1000
    C0/FB4D: F00B BEQ $FB5A
    C0/FB4F: ADFB2C LDA $2CFB
    C0/FB52: 291200 AND #$0012
    C0/FB55: C91200 CMP #$0012
    C0/FB58: F01F BEQ $FB79
    C0/FB5A: ADFB2C LDA $2CFB
    C0/FB5D: 890200 BIT #$0002
    C0/FB60: D028 BNE $FB8A
    C0/FB62: AD1E2D LDA $2D1E
    C0/FB65: 894000 BIT #$0040
    C0/FB68: D020 BNE $FB8A
    C0/FB6A: AD1E2D LDA $2D1E
    C0/FB6D: 290FFF AND #$FF0F
    C0/FB70: 09C000 ORA #$00C0
    C0/FB73: 8D1E2D STA $2D1E
    C0/FB76: 68 PLA
    C0/FB77: 802C BRA $FBA5
    C0/FB79: A98000 LDA #$0080
    C0/FB7C: 0CFC2C TSB $2CFC
    C0/FB7F: A94000 LDA #$0040
    C0/FB82: 0CFB2C TSB $2CFB
    C0/FB85: ADFF2C LDA $2CFF
    C0/FB88: 1B TCS
    C0/FB89: 60 RTS
    C0/FB8A: 68 PLA
    C0/FB8B: 3A DEC A
    C0/FB8C: F005 BEQ $FB93
    C0/FB8E: 20D1FD JSR $FDD1 //enable nmi, wait nmi
    C0/FB91: 80AD BRA $FB40
    C0/FB93: 22B0FEC0 JSL $C0FEB0 //rol to wait
    C0/FB97: 2CFD2C BIT $2CFD
    C0/FB9A: D009 BNE $FBA5
    C0/FB9C: AD1E2D LDA $2D1E
    C0/FB9F: 290FFF AND #$FF0F
    C0/FBA2: 8D1E2D STA $2D1E
    C0/FBA5: 60 RTS

    C0/ED81: CF50207E CMP $7E2050 //wait nmi
    C0/ED85: B004 BCS $ED8B
    C0/ED87: 8F50207E STA $7E2050
    C0/ED8B: CF50207E CMP $7E2050
    C0/ED8F: B0FA BCS $ED8B
    C0/ED91: A900 LDA #$00
    C0/ED93: 8F50207E STA $7E2050
    C0/ED97: 6B RTL

    C0/F4FA: A92000 LDA #$0020
    C0/F4FD: 1CFC2C TRB $2CFC
    C0/F500: ADF52C LDA $2CF5 //text frame pos
    C0/F503: 2019FD JSR $FD19
    C0/F506: 205BEF JSR $EF5B
    C0/F509: 20D1FD JSR $FDD1
    C0/F50C: 223A0EC1 JSR $C10E3A
    C0/F510: A20021 LDX #$2100
    C0/F513: 8EF72C STX $2CF7
    C0/F516: A20068 LDX #$6800
    C0/F519: 8E0D2D STX $2D0D
    C0/F51C: 9C1C2D STZ $2D1C //line No.
    C0/F51F: 60 RTS

    C0/FD19: 08 PHP
    C0/FD1A: C220 REP #$20
    C0/FD1C: 48 PHA
    C0/FD1D: 2900FF AND #$FF00
    C0/FD20: 094000 ORA #$0040
    C0/FD23: 8F024200 STA $004202
    C0/FD27: A301 LDA $01,S
    C0/FD29: 29FF00 AND #$00FF
    C0/FD2C: 0A ASL A
    C0/FD2D: 18 CLC
    C0/FD2E: 6F164200 ADC $004216
    C0/FD32: 29FF07 AND #$07FF
    C0/FD35: 8D0B2D STA $2D0B
    C0/FD38: 8D0F2D STA $2D0F
    C0/FD3B: 8D112D STA $2D11
    C0/FD3E: A301 LDA $01,S
    C0/FD40: 2900FF AND #$FF00
    C0/FD43: 092000 ORA #$0020
    C0/FD46: 8F024200 STA $004202
    C0/FD4A: 68 PLA
    C0/FD4B: 29FF00 AND #$00FF
    C0/FD4E: 18 CLC
    C0/FD4F: 6D4241 ADC $4142
    C0/FD52: 6F164200 ADC $004216
    C0/FD56: 8D132D STA $2D13 //cursor pos
    C0/FD59: 8D152D STA $2D15 //bg3 map vram pos
    C0/FD5C: 28 PLP
    C0/FD5D: 60 RTS

    C0/ED33: 08 PHP
    C0/ED34: E220 SEP #$20
    C0/ED36: 48 PHA
    C0/ED37: AF53207E LDA $7E2053
    C0/ED3B: 8F002100 STA $002100
    C0/ED3F: 68 PLA
    C0/ED40: 28 PLP
    C0/ED41: 6B RTL

    Render
    C0/F811
    [​IMG]

    C0/F856
    [​IMG]

    C0/F893
    [​IMG]

    C0/F8E3
    [​IMG]

    C0/F950
    [​IMG]
     
  4. witfox

    witfox Khoái ăn nho tím Lão Làng GVN

    Tham gia ngày:
    5/1/05
    Bài viết:
    6,268
    Nơi ở:
    Thiên đường
    Thank you very nhiều!

    Thật sự Fox không hiểu nó là gì luôn á...
    Giờ mới hiểu được mỗi offset thôi
     
  5. SPC700

    SPC700 Legend of Zelda

    Tham gia ngày:
    1/10/20
    Bài viết:
    1,074
    [​IMG]
     
    witfox thích bài này.
  6. witfox

    witfox Khoái ăn nho tím Lão Làng GVN

    Tham gia ngày:
    5/1/05
    Bài viết:
    6,268
    Nơi ở:
    Thiên đường
    Vậy người học hiểu còn không cho nó 1 bản VN trans đi.
    Cũng đâu cần phải dịch sát nghĩa, nhỉ?
     
  7. SPC700

    SPC700 Legend of Zelda

    Tham gia ngày:
    1/10/20
    Bài viết:
    1,074
  8. witfox

    witfox Khoái ăn nho tím Lão Làng GVN

    Tham gia ngày:
    5/1/05
    Bài viết:
    6,268
    Nơi ở:
    Thiên đường
    Làm đi...Để ý cứ Việt hóa nhân tạo chứ không phải google tạo (Tactic Ogre GBA) là văn thơ trào dâng lai láng hà.
    Thế là
    Game cần dịch hề dịch cho bằng hết
    Người dịch hề dịch cho đã cái nư
    Người chơi hề chơi để rõ nội dung
    Rốt cuộc hề dịch cứ lo dịch đi sẽ được game thủ ghi công trạng!

    Đố biết thể loại gì (=^o^=)(=^o^=)(=^o^=)

    Nhớ hồi làm trưởng làng ở Emblem Saga text văn thơ cũng tuôn trào như lũ quét...
     
  9. SPC700

    SPC700 Legend of Zelda

    Tham gia ngày:
    1/10/20
    Bài viết:
    1,074
    New text routine:
    1/ Đọc 1 chữ
    2/ Đọc độ rộng chữ
    3/ Render chữ vào buffer
    4/ Render map vào buffer
    5/ Đợi NMI
    6/ DMA text graphic từ buffer vào Vram
    7/ DMA text map từ buffer vào Vram
    8/ Loop

     
    witfox and Junbei like this.
  10. witfox

    witfox Khoái ăn nho tím Lão Làng GVN

    Tham gia ngày:
    5/1/05
    Bài viết:
    6,268
    Nơi ở:
    Thiên đường
    Fox tưởng tượng mình là vua trong tuồng "Xa phu đi sứ": Nhìn Tuyết Vân (video First Queen Việt Hóa) trẫm nhớ tới Vân Anh (video SRW4 Việt hóa) (=ToT=)

    Dịch hay quá xá quà xa!!!Hay quá trời quá đất là hay tuyệt!!!
    Tuyệt hảo!
    Tuyệt mỹ!
    Tuyệt tác!
    Tuyệt vời!
    Tuyệt tự!


    Chỉ là có vài chỗ nghe hơi ngượng nhưng thích thì cứ để vậy nhen, post này mang tính góp ý thôi vì game này mà được Việt hóa thì quả là 1 tuyệt phẩm:
    1:35: Con Sophia kêu phụ vương bằng ngài nghe xa mặt cách lòng. Có thể đổi bằng "người"
    "Long thể người thế nào rồi, thưa phụ vương?"

    1:49: Từ khi nữ vương Catherin lên ngôi Ornic cứ liên tục chuẩn bị chiến tranh có thể chỉnh xíu (Fox thấy hợp văn cảnh thôi nha, còn nội dung Fox chịu)
    "Từ khi nữ vương Catherin đăng quang thì Ornic lại lục đục chuẩn bị chiến tranh" hay cho đủ khung thì ngắn hơn
    "Từ khi nữ vương Catherin lên ngôi Ornic như sắp có biến"

    2:18: tức ả cũng là hậu duệ của vua Gord có thể đổi cho ra kiểu hoàng gia xíu
    "hay nói cách khác" hoặc "cũng có nghĩa là" hay muốn đủ khung "nên"
    hay "nên ả mặc nhiên" để thêm tính trầm trọng vô há

    2:33 có vẻ sai sai "nhưng mà bây giờ Cardic không đủ sức để chống lại Cardic..." là chống lại Ornic mới đúng phải hơm?

    6:20: Ồ các người vất vả. Các ngươi! Thời của ta đã đến rồi!
    Fox không hiểu lắm nhưng có vẻ là bả muốn công nhận chiến tích đám thuộc hạ. Vậy thì có thể xem xét
    "Ta có lời khen ngợi. Chúng khanh! Thời của ta đã đến rồi!"

    Lạy trời! Lạy phật! Lạy chúa! Lạy thành Allah! Lạy tổ dịch game cho đầu xuôi đuôi lòi ra bản Việt hóa 100% trót lọt!
    A di đà Phật!
    Amen!
    Án ma ni bát mê hồng! Ma bỏ dở đừng ám game này!
     
    Chỉnh sửa cuối: 24/9/21
  11. SPC700

    SPC700 Legend of Zelda

    Tham gia ngày:
    1/10/20
    Bài viết:
    1,074


    First Queen - Ornic Senki (chiến ký Ornic) là một game chiến thuật do Kure Software sản xuất, được hãng Culture Brain phát hành năm 1994 trên máy Super Famicom. Phiên bản gốc ra đời năm 1988 trên máy PC-98 của hãng NEC. Phiên bản Super Famicom này khá quen thuộc với người Việt Nam thế hệ 8x, 9x. Đương thời, trò này thường được "Việt hóa" cái tên là "Đệ nhất Nữ hoàng" hay "Đệ nhất Vương hậu", "Đệ nhất Hoàng hậu". First Queen - Chiến ký Ornic có lối chơi độc đáo, không giống bất cứ game chiến thuật nào từ trước tới nay. Người chơi điều khiển cùng lúc 16 nhân vật tham gia vào các trận đánh diễn ra trong thời gian thật. Số lượng nhân vật có thể điều khiển trong game này lên tới cả trăm. Đây là game Super Famicom có số lượng nhân vật mà người chơi có thể điều khiển nhiều nhất. Tuy nhiên, bạn chỉ có thể điều khiển cùng lúc 16 nhân vật. Những nhân vật còn lại được chia thành nhiều đạo quân khác nhau, trấn giữ ở vị trí được người chơi chỉ định trên bản đồ. Người chơi có thể điều khiển bất cứ đạo quân nào vào bất cứ thời điểm nào, điều này tăng thêm tính chiến thuật của trò chơi. Sở dĩ số lượng nhân vật trong game này đồ sộ như vậy là vì người chơi có thể thu phục thêm nhiều đạo quân khác, vốn là các chủng tộc khác nhau sinh sống rải rác trên khắp lục địa Glorith. Ngoài ra, người chơi còn có thể bắt sống lính bên địch làm tù binh, biến chúng thành binh lính của mình. Nội dung của First Queen - Chiến ký Ornic khá thú vị, xoay quanh âm mưu của Nữ hoàng Catharin toan thôn tính toàn bộ đại lục Glorith, cũng như khắc họa những mối mâu thuẫn giữa các chủng tộc trên đại lục. Toàn bộ câu chuyện của First Queen - Chiến ký Ornic mang hơi hướm của "The Lord of the Rings". Bầu không khí trong game cũng đượm màu sắc và mùi vị của chúa nhẫn. Game có được bầu không khí này cũng nhờ một phần lớn ở những bản nhạc nền cực kỳ hùng tráng. Đây là một trong những game có nhạc nền hay nhất mà tôi từng chơi, xứng đáng 10/10 điểm cho mảng âm nhạc. Về tổng thể, First Queen - Chiến ký Ornic là một game cực kỳ xuất sắc nhưng không gặp thời. Khá ít người biết về nó, dù là ở cả chính quốc. Có vẻ như người Việt Nam biết về nó nhiều hơn các quốc gia khác.
     
    namff and T0977999482 like this.
  12. banco3nguoi

    banco3nguoi Youtube Master Race Lão Làng GVN

    Tham gia ngày:
    13/11/10
    Bài viết:
    12
    Cho xin bản việt hoá vois
     

Chia sẻ trang này