; DirectScrollPLM.asm for xkas v0.06 by MoodyBlues ; ******************************************************************************** ; ScrollPLM for direct input ; ******************************************************************************** ; This patch will make you happy just a little bit. This is really handy to me! ; ; After apply this patch to your ROM, you can use a scroll PLM in the same way as before. ; In ordinary circumstances, the "High" and "Low" bytes are actually a pointer to data in bank $8F. ; If the number of "High" is less than $30 in smile, you can specify the number directly. ; ; Scroll PLM "High": which screen do you want to change. (00--2C) ; Scroll PLM "Low": what number do you want to change to. (00,01,02) ; Ex.(001.jpg): The second screen turns into green when samus touches the PLM. ; ; Default: $848B63--$848B65 change 3bytes ; $84EFE0--$84F003 use 35bytes ; ; Please tell me if there are any problems with this patch. ; (No credits necessary.) ; -------------------------------------------------------------------------------- LOROM ;HEADER ;uncomment if your ROM have a header org $848B63 JMP SUB: org $84EFE0 SUB: LDA $1DC7,x CMP #$3000 BCC DO: LDA #$0000 JMP $8B66 DO: TXY INY LDA #$0000 SEP #$20 LDA $1DC7,y TAX DEY LDA $1DC7,y STA $7ECD20,x JMP $8B79