let's dev sep 19th 2017

event draw stuff
This commit is contained in:
Karkat
2017-09-19 23:30:54 -04:00
parent b0abb5e823
commit b08e936057
6 changed files with 66 additions and 4 deletions

View File

@@ -98,7 +98,10 @@ macro CopyDialog(address)
LDA.b #<address> : STA $00 ; write pointer to direct page
LDA.b #<address>>>8 : STA $01
LDA.b #<address>>>16 : STA $02
%CopyDialogIndirect()
endmacro
;--------------------------------------------------------------------------------
macro CopyDialogIndirect()
REP #$20 : LDA !OFFSET_POINTER : TAX : LDY.w #$0000 : SEP #$20 ; copy 2-byte offset pointer to X and set Y to 0
?loop:
LDA [$00], Y ; load the next character from the pointer
@@ -111,6 +114,12 @@ macro CopyDialog(address)
SEP #$20 ; set 8-bit accumulator
endmacro
;--------------------------------------------------------------------------------
LoadDialogAddressIndirect:
LDA.b #$01 : STA $7F5035 ; set flag
%CopyDialogIndirect()
;%LoadDialogAddress(UncleText)
RTL
;--------------------------------------------------------------------------------
!ITEM_TEMPORARY = "$7F5040"
FreeDungeonItemNotice:
STA !ITEM_TEMPORARY
@@ -192,7 +201,7 @@ FreeDungeonItemNotice:
PLP
PLY : PLX : PLA
JSL.l Sprite_ShowMessageMinimal
JSL.l Main_ShowTextMessage
RTL
.skip