Users browsing this thread: 1 Guest(s)
How spell names appear when cast

#2
Posts: 181
Threads: 3
Thanks Received: 26
Thanks Given: 4
Joined: Apr 2015
Reputation: 18
Status
None
I think this is the code you're looking for (This is for v1.0, the offset is C1/6016 for v1.1)

Code:
; spell name
C1/6019: EB           XBA
C1/601A: A9 07        LDA #$07        ; 7 letters
C1/601C: 85 10        STA $10
C1/601E: 8D 6D 61     STA $616D
C1/6021: 20 CA 18     JSR $18CA
C1/6024: C2 20        REP #$20
C1/6026: AF 16 42 00  LDA $004216
C1/602A: AA           TAX
C1/602B: 7B           TDC
C1/602C: E2 20        SEP #$20
C1/602E: CE 6D 61     DEC $616D       ; skip symbol byte
C1/6031: BF 68 F5 E6  LDA $E6F568,X   ; spell name (skips symbol byte)
C1/6035: C9 FF        CMP #$FF
C1/6037: F0 09        BEQ $6042
C1/6039: 20 11 61     JSR $6111
C1/603C: E8           INX
C1/603D: CE 6D 61     DEC $616D
C1/6040: D0 EF        BNE $6031
C1/6042: 60           RTS
  Find
Quote  
[-] The following 1 user says Thank You to Everything for this post:
  • fedorajoe (12-02-2021)



Messages In This Thread
How spell names appear when cast - by fedorajoe - 11-29-2021, 08:52 PM
RE: How spell names appear when cast - by Everything - 12-01-2021, 02:13 PM

Forum Jump:

Users browsing this thread: 1 Guest(s)


Theme by Madsiur2017Custom Graphics by JamesWhite