storytime

by supermaks64

Game: SMW

Description: Allows you to write the deep lore of Super Mario World

Code:
LDA $0100|!addr
CMP #$0C
BNE +
LDA $1DE9|!addr
BEQ .ret
LDA #$19
STA $0100|!addr
LDA #$02
STA $13C6|!addr
+
CMP #$1B
BNE .ret
LDA !carl_initialized
BEQ +
INC $1443|!addr
LDA #$00
STA !carl_initialized
+
LDA $1443|!addr
BEQ .ret
DEC
AND #$1F
BNE .ret
DEC $1443|!addr
LDA #$01
STA !carl_initialized
LDA $1443|!addr
AND #$E0
LSR #4
TAY
REP #$10
PHB
PHK
PLB
LDX.w Offsets,y
TXY
LDX #$0000
-
LDA.w Start,y
STA.l $7F837D,x
INX : INY
CMP #$FF
BNE -
SEP #$10
PLB
LDA $1443|!addr
BNE .ret
LDA #$DE
LDX #$C0
LDY #$DE
.ret
RTL

'!' = $391A : '.' = $391B : '-' = $391C : ',' = $391D
'?' = $391E : '#' = $395A : '(' = $395B : ')' = $395C
'/' = $391F ;space
'`' = $395D ;apostrophe
'%' = $399F ;fish
'A' = $3900 : 'B' = $3901 : 'C' = $3902 : 'D' = $3903 : 'E' = $3904 : 'F' = $3905 : 'G' = $3906 : 'H' = $3907 : 'I' = $3908 : 'J' = $3909 : 'K' = $390A : 'L' = $390B : 'M' = $390C : 'N' = $390D : 'O' = $390E : 'P' = $390F : 'Q' = $3910 : 'R' = $3911 : 'S' = $3912 : 'T' = $3913 : 'U' = $3914 : 'V' = $3915 : 'W' = $3916 : 'X' = $3917 : 'Y' = $3918 : 'Z' = $3919
'a' = $3940 : 'b' = $3941 : 'c' = $3942 : 'd' = $3943 : 'e' = $3944 : 'f' = $3945 : 'g' = $3946 : 'h' = $3947 : 'i' = $3948 : 'j' = $3949 : 'k' = $394A : 'l' = $394B : 'm' = $394C : 'n' = $394D : 'o' = $394E : 'p' = $394F : 'q' = $3950 : 'r' = $3951 : 's' = $3952 : 't' = $3953 : 'u' = $3954 : 'v' = $3955 : 'w' = $3956 : 'x' = $3957 : 'y' = $3958 : 'z' = $3959
'2' = $3965

Offsets:
dw C1H-Start,C1G-Start,C1F-Start,C1E-Start,C1D-Start,C1C-Start,C1B-Start,C1A-Start
!1 = $6452,$2F00
!2 = $8452,$2F00
!3 = $A452,$2F00
!4 = $C452,$2F00
!5 = $E452,$2F00
!6 = $0453,$2F00
!7 = $2453,$2F00
!8 = $4453,$2F00
Start:
;C1A: dw !1,"Morton///Koopa///Jr.//of" : db $FF
;C1B: dw !2,"castle//#2/is/now/just/a" : db $FF
;C1C: dw !3,"memory./The/next/area/is" : db $FF
;C1D: dw !4,"the//#2/MORTON`S/CASTLE/" : db $FF
;C1E: dw !5,"What/traps/await/Mario//" : db $FF
;C1F: dw !6,"in/this/new/castle?/////" : db $FF
;C1G: dw !7,"What///will///become//of" : db $FF
;C1H: dw !8,"#2/MORTON`S/CASTLE?/////" : db $FF

C1A: dw !1,"Morton/Koopa/Jr..///////" : db $FF
'A' = $3D00 : 'B' = $3D01 : 'C' = $3D02 : 'D' = $3D03 : 'E' = $3D04 : 'F' = $3D05 : 'G' = $3D06 : 'H' = $3D07 : 'I' = $3D08 : 'J' = $3D09 : 'K' = $3D0A : 'L' = $3D0B : 'M' = $3D0C : 'N' = $3D0D : 'O' = $3D0E : 'P' = $3D0F : 'Q' = $3D10 : 'R' = $3D11 : 'S' = $3D12 : 'T' = $3D13 : 'U' = $3D14 : 'V' = $3D15 : 'W' = $3D16 : 'X' = $3D17 : 'Y' = $3D18 : 'Z' = $3D19
'a' = $3D40 : 'b' = $3D41 : 'c' = $3D42 : 'd' = $3D43 : 'e' = $3D44 : 'f' = $3D45 : 'g' = $3D46 : 'h' = $3D47 : 'i' = $3D48 : 'j' = $3D49 : 'k' = $3D4A : 'l' = $3D4B : 'm' = $3D4C : 'n' = $3D4D : 'o' = $3D4E : 'p' = $3D4F : 'q' = $3D50 : 'r' = $3D51 : 's' = $3D52 : 't' = $3D53 : 'u' = $3D54 : 'v' = $3D55 : 'w' = $3D56 : 'x' = $3D57 : 'y' = $3D58 : 'z' = $3D59
'.' = $3D1B
C1B: dw !2,"Morton/Koopa/Jr."
'A' = $3900 : 'B' = $3901 : 'C' = $3902 : 'D' = $3903 : 'E' = $3904 : 'F' = $3905 : 'G' = $3906 : 'H' = $3907 : 'I' = $3908 : 'J' = $3909 : 'K' = $390A : 'L' = $390B : 'M' = $390C : 'N' = $390D : 'O' = $390E : 'P' = $390F : 'Q' = $3910 : 'R' = $3911 : 'S' = $3912 : 'T' = $3913 : 'U' = $3914 : 'V' = $3915 : 'W' = $3916 : 'X' = $3917 : 'Y' = $3918 : 'Z' = $3919
'a' = $3940 : 'b' = $3941 : 'c' = $3942 : 'd' = $3943 : 'e' = $3944 : 'f' = $3945 : 'g' = $3946 : 'h' = $3947 : 'i' = $3948 : 'j' = $3949 : 'k' = $394A : 'l' = $394B : 'm' = $394C : 'n' = $394D : 'o' = $394E : 'p' = $394F : 'q' = $3950 : 'r' = $3951 : 's' = $3952 : 't' = $3953 : 'u' = $3954 : 'v' = $3955 : 'w' = $3956 : 'x' = $3957 : 'y' = $3958 : 'z' = $3959
'.' = $391B
dw ".../////" : db $FF
C1C: dw !3,"The/"
'A' = $3D00 : 'B' = $3D01 : 'C' = $3D02 : 'D' = $3D03 : 'E' = $3D04 : 'F' = $3D05 : 'G' = $3D06 : 'H' = $3D07 : 'I' = $3D08 : 'J' = $3D09 : 'K' = $3D0A : 'L' = $3D0B : 'M' = $3D0C : 'N' = $3D0D : 'O' = $3D0E : 'P' = $3D0F : 'Q' = $3D10 : 'R' = $3D11 : 'S' = $3D12 : 'T' = $3D13 : 'U' = $3D14 : 'V' = $3D15 : 'W' = $3D16 : 'X' = $3D17 : 'Y' = $3D18 : 'Z' = $3D19
'a' = $3D40 : 'b' = $3D41 : 'c' = $3D42 : 'd' = $3D43 : 'e' = $3D44 : 'f' = $3D45 : 'g' = $3D46 : 'h' = $3D47 : 'i' = $3D48 : 'j' = $3D49 : 'k' = $3D4A : 'l' = $3D4B : 'm' = $3D4C : 'n' = $3D4D : 'o' = $3D4E : 'p' = $3D4F : 'q' = $3D50 : 'r' = $3D51 : 's' = $3D52 : 't' = $3D53 : 'u' = $3D54 : 'v' = $3D55 : 'w' = $3D56 : 'x' = $3D57 : 'y' = $3D58 : 'z' = $3D59
dw "second/koopaling,///" : db $FF
'A' = $3900 : 'B' = $3901 : 'C' = $3902 : 'D' = $3903 : 'E' = $3904 : 'F' = $3905 : 'G' = $3906 : 'H' = $3907 : 'I' = $3908 : 'J' = $3909 : 'K' = $390A : 'L' = $390B : 'M' = $390C : 'N' = $390D : 'O' = $390E : 'P' = $390F : 'Q' = $3910 : 'R' = $3911 : 'S' = $3912 : 'T' = $3913 : 'U' = $3914 : 'V' = $3915 : 'W' = $3916 : 'X' = $3917 : 'Y' = $3918 : 'Z' = $3919
'a' = $3940 : 'b' = $3941 : 'c' = $3942 : 'd' = $3943 : 'e' = $3944 : 'f' = $3945 : 'g' = $3946 : 'h' = $3947 : 'i' = $3948 : 'j' = $3949 : 'k' = $394A : 'l' = $394B : 'm' = $394C : 'n' = $394D : 'o' = $394E : 'p' = $394F : 'q' = $3950 : 'r' = $3951 : 's' = $3952 : 't' = $3953 : 'u' = $3954 : 'v' = $3955 : 'w' = $3956 : 'x' = $3957 : 'y' = $3958 : 'z' = $3959
C1D: dw !4,"lying/hidden/somewhere//" : db $FF
C1E: dw !5,"in/this/hack.../////////" : db $FF
C1F: dw !6,"The/one/they/call/the///" : db $FF
'A' = $3D00 : 'B' = $3D01 : 'C' = $3D02 : 'D' = $3D03 : 'E' = $3D04 : 'F' = $3D05 : 'G' = $3D06 : 'H' = $3D07 : 'I' = $3D08 : 'J' = $3D09 : 'K' = $3D0A : 'L' = $3D0B : 'M' = $3D0C : 'N' = $3D0D : 'O' = $3D0E : 'P' = $3D0F : 'Q' = $3D10 : 'R' = $3D11 : 'S' = $3D12 : 'T' = $3D13 : 'U' = $3D14 : 'V' = $3D15 : 'W' = $3D16 : 'X' = $3D17 : 'Y' = $3D18 : 'Z' = $3D19
'a' = $3D40 : 'b' = $3D41 : 'c' = $3D42 : 'd' = $3D43 : 'e' = $3D44 : 'f' = $3D45 : 'g' = $3D46 : 'h' = $3D47 : 'i' = $3D48 : 'j' = $3D49 : 'k' = $3D4A : 'l' = $3D4B : 'm' = $3D4C : 'n' = $3D4D : 'o' = $3D4E : 'p' = $3D4F : 'q' = $3D50 : 'r' = $3D51 : 's' = $3D52 : 't' = $3D53 : 'u' = $3D54 : 'v' = $3D55 : 'w' = $3D56 : 'x' = $3D57 : 'y' = $3D58 : 'z' = $3D59
C1G: dw !7,"Ultimate/Chathacker...//" : db $FF
'A' = $3900 : 'B' = $3901 : 'C' = $3902 : 'D' = $3903 : 'E' = $3904 : 'F' = $3905 : 'G' = $3906 : 'H' = $3907 : 'I' = $3908 : 'J' = $3909 : 'K' = $390A : 'L' = $390B : 'M' = $390C : 'N' = $390D : 'O' = $390E : 'P' = $390F : 'Q' = $3910 : 'R' = $3911 : 'S' = $3912 : 'T' = $3913 : 'U' = $3914 : 'V' = $3915 : 'W' = $3916 : 'X' = $3917 : 'Y' = $3918 : 'Z' = $3919
'a' = $3940 : 'b' = $3941 : 'c' = $3942 : 'd' = $3943 : 'e' = $3944 : 'f' = $3945 : 'g' = $3946 : 'h' = $3947 : 'i' = $3948 : 'j' = $3949 : 'k' = $394A : 'l' = $394B : 'm' = $394C : 'n' = $394D : 'o' = $394E : 'p' = $394F : 'q' = $3950 : 'r' = $3951 : 's' = $3952 : 't' = $3953 : 'u' = $3954 : 'v' = $3955 : 'w' = $3956 : 'x' = $3957 : 'y' = $3958 : 'z' = $3959
C1H: dw !8,"Watch/out/for/him...////" : db $FF
back to listings