Users browsing this thread: 2 Guest(s)
FF6hacking Twitch account idea

#20
Posts: 127
Threads: 8
Thanks Received: 21
Thanks Given: 12
Joined: Jan 2012
Reputation: 13
Status
None
One way to include many event commands in one is having the first parameter serve as an index to a jump table. This will effectively turn the event command index into a 16-bit index at the cost of one less maximum parameters.

Code:
A6 EB    # LDX $EB
7C 13 D8 # JMP $D813,X

So this can be pretty simple, but note the parameters of the command will now start at $EC. This solution also requires the jump table and code to be located in the same bank (C0).

If we want our 16-bit event command to call event commands from a different bank (like expanded memory) we would wrap the whole thing with a long jump.

Code:
5C 00 00 F0 # JML $F00000

@ F00000:
    A6 EB    # LDX $EB
    7C 05 00 # JMP $0005,X

@B-Run I agree it's nice to have flexible event commands but I think hardcoding offsets and RAM locations can be dangerous and not the best way to go. The idea of an abstraction layer like event commands is to make the code more dynamic so ASM code can be changed without changes in events. A RAM setting function is basically extending the event bit functions to address the whole RAM, I don't see all that needed for events. We want to deal with high level objects in the game like characters, items, spells etc. if we wanted low level control we would write events in ASM. So think abstract be specific.

I'm interested in doing more streaming, I need to figure out a schedule though. I'm hyped for Madsiur stream, it'll be good.
  Find
Quote  



Messages In This Thread
FF6hacking Twitch account idea - by madsiur - 07-17-2016, 08:09 AM
RE: FF6hacking Twitch account idea - by Lockirby2 - 07-17-2016, 09:56 AM
RE: FF6hacking Twitch account idea - by B-Run - 07-17-2016, 01:25 PM
RE: FF6hacking Twitch account idea - by madsiur - 07-17-2016, 02:03 PM
RE: FF6hacking Twitch account idea - by Jackimus - 07-18-2016, 03:09 PM
RE: FF6hacking Twitch account idea - by Lockirby2 - 07-18-2016, 09:48 PM
RE: FF6hacking Twitch account idea - by Jackimus - 07-26-2016, 05:09 PM
RE: FF6hacking Twitch account idea - by B-Run - 07-26-2016, 07:42 PM
RE: FF6hacking Twitch account idea - by Jackimus - 07-27-2016, 11:51 AM
RE: FF6hacking Twitch account idea - by B-Run - 07-27-2016, 01:28 PM
RE: FF6hacking Twitch account idea - by B-Run - 07-29-2016, 01:31 PM
RE: FF6hacking Twitch account idea - by Jackimus - 07-29-2016, 02:30 PM
RE: FF6hacking Twitch account idea - by B-Run - 08-05-2016, 12:12 PM
RE: FF6hacking Twitch account idea - by madsiur - 08-06-2016, 10:23 AM
RE: FF6hacking Twitch account idea - by B-Run - 08-06-2016, 11:13 AM
RE: FF6hacking Twitch account idea - by Lockirby2 - 08-06-2016, 12:13 PM
RE: FF6hacking Twitch account idea - by m06 - 08-06-2016, 09:10 PM
RE: FF6hacking Twitch account idea - by madsiur - 08-07-2016, 06:52 AM
RE: FF6hacking Twitch account idea - by B-Run - 08-07-2016, 08:50 AM

Forum Jump:

Users browsing this thread: 2 Guest(s)


Theme by Madsiur2017Custom Graphics by JamesWhite