Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- **** BEGIN LOGGING AT Mon Jul 12 11:30:43 2010
- Jul 12 11:30:43 Now talking on #asm
- Jul 12 11:30:43 * irc.caffie.net sets mode +n #asm
- **** ENDING LOGGING AT Mon Jul 12 11:31:08 2010
- **** BEGIN LOGGING AT Mon Jul 12 11:31:23 2010
- Jul 12 11:31:23 Now talking on #asm
- Jul 12 11:31:24 <MarioEdit> fuck
- Jul 12 11:31:25 <Selin> Hello?
- Jul 12 11:31:25 <MarioEdit> shit
- Jul 12 11:31:28 <Selin> Lol
- Jul 12 11:31:33 Selin (seliniphon@FC74DAB4.2D629580.452B6A9D.IP) has left #asm
- Jul 12 11:31:33 Selin (seliniphon@FC74DAB4.2D629580.452B6A9D.IP) has joined #asm
- Jul 12 11:31:40 <MarioEdit> damnit
- Jul 12 11:31:43 You have left channel #asm
- **** ENDING LOGGING AT Mon Jul 12 11:31:43 2010
- **** BEGIN LOGGING AT Mon Jul 12 11:31:43 2010
- Jul 12 11:31:43 Now talking on #asm
- Jul 12 11:31:46 <Selin> Lol
- Jul 12 11:31:51 <MarioEdit> oh well
- Jul 12 11:31:51 <Selin> Both leave
- Jul 12 11:31:54 Bad arguments for user command.
- Jul 12 11:31:56 <Selin> Eh
- Jul 12 11:31:57 You have left channel #asm (Leaving)
- **** ENDING LOGGING AT Mon Jul 12 11:31:57 2010
- **** BEGIN LOGGING AT Mon Jul 12 11:31:58 2010
- Jul 12 11:31:58 Now talking on #asm
- Jul 12 11:32:01 Selin (seliniphon@FC74DAB4.2D629580.452B6A9D.IP) has left #asm
- Jul 12 11:32:04 You have left channel #asm
- **** ENDING LOGGING AT Mon Jul 12 11:32:04 2010
- **** BEGIN LOGGING AT Mon Jul 12 11:32:04 2010
- Jul 12 11:32:04 Now talking on #asm
- Jul 12 11:32:04 * irc.caffie.net sets mode +n #asm
- Jul 12 11:32:05 Selin (seliniphon@FC74DAB4.2D629580.452B6A9D.IP) has joined #asm
- Jul 12 11:32:10 <Selin> K
- Jul 12 11:32:10 * MarioEdit sets mode +v Selin
- Jul 12 11:32:13 <MarioEdit> okay
- Jul 12 11:32:18 <MarioEdit> so what do you know already?
- Jul 12 11:32:31 <Selin> LDA
- Jul 12 11:32:33 <Selin> STA
- Jul 12 11:32:39 <Selin> BEQ
- Jul 12 11:32:41 <Selin> RTL
- Jul 12 11:32:44 <Selin> uhm
- Jul 12 11:32:46 <MarioEdit> and CMP?
- Jul 12 11:32:49 <Selin> CMP
- Jul 12 11:32:52 <Selin> yes
- Jul 12 11:32:54 <MarioEdit> alright
- Jul 12 11:32:56 <MarioEdit> first things first
- Jul 12 11:32:57 <Selin> also
- Jul 12 11:33:00 <Selin> Freespace
- Jul 12 11:33:03 <Selin> And db
- Jul 12 11:33:05 <Selin> Lol
- Jul 12 11:33:10 <MarioEdit> do you have at least a half hour?
- Jul 12 11:33:15 <Selin> Uhm
- Jul 12 11:33:16 <Selin> Yes
- Jul 12 11:33:19 <MarioEdit> alright
- Jul 12 11:33:26 <Selin> I'm tired
- Jul 12 11:33:35 <MarioEdit> now, there are more branch opcodes than BEQ
- Jul 12 11:33:40 <Selin> So it could take much longer
- Jul 12 11:33:42 <MarioEdit> first up, is BNE
- Jul 12 11:33:43 <Selin> Uh huh
- Jul 12 11:33:55 <MarioEdit> it will branch if it is NOT equal
- Jul 12 11:33:56 <Selin> Branch not equal
- Jul 12 11:33:59 <MarioEdit> so, let's say
- Jul 12 11:34:00 <Selin> I do know that
- Jul 12 11:34:02 <Selin> Sorry
- Jul 12 11:34:05 <MarioEdit> f
- Jul 12 11:34:07 <Selin> I know some stuff
- Jul 12 11:34:08 <MarioEdit> BCS
- Jul 12 11:34:12 <Selin> I forget ts name
- Jul 12 11:34:16 <Selin> *it's
- Jul 12 11:34:19 <MarioEdit> so
- Jul 12 11:34:22 <MarioEdit> BCS means
- Jul 12 11:34:25 <Selin> No, don't know that bgs
- Jul 12 11:34:29 <Selin> *bcs
- Jul 12 11:34:30 <MarioEdit> it will branch if it's greater than, or equal to
- Jul 12 11:34:36 <Selin> Uh huh
- Jul 12 11:34:39 <MarioEdit> so, let's say we have LDA $13
- Jul 12 11:34:42 <MarioEdit> CMP #$20
- Jul 12 11:34:45 <MarioEdit> BCS Label
- Jul 12 11:34:48 <Selin> Uh huh
- Jul 12 11:34:50 <MarioEdit> if $13 is 20, or more
- Jul 12 11:34:53 <MarioEdit> it will branch
- Jul 12 11:34:55 <Selin> K
- Jul 12 11:35:01 <Selin> So
- Jul 12 11:35:01 <MarioEdit> understand?
- Jul 12 11:35:07 <MarioEdit> so let's say
- Jul 12 11:35:08 <MarioEdit> LDA $19
- Jul 12 11:35:12 <MarioEdit> CMP #$01
- Jul 12 11:35:15 <MarioEdit> BCS Label
- Jul 12 11:35:16 <Selin> You could use that for marios powerups
- Jul 12 11:35:28 <Selin> If your not small mario, it branches
- Jul 12 11:35:32 <MarioEdit> yep
- Jul 12 11:35:35 <Selin> :P
- Jul 12 11:35:36 <Selin> K
- Jul 12 11:35:38 <MarioEdit> now
- Jul 12 11:35:46 <MarioEdit> BCC is branch if less than (carry clear)
- Jul 12 11:35:54 <Selin> K
- Jul 12 11:35:55 <MarioEdit> you don't have to understand Carry flag yet
- Jul 12 11:36:01 <Selin> Yep
- Jul 12 11:36:01 <Selin> K
- Jul 12 11:36:02 <MarioEdit> so
- Jul 12 11:36:03 <MarioEdit> LDA $13
- Jul 12 11:36:05 <MarioEdit> CMP #$20
- Jul 12 11:36:07 <MarioEdit> BCC Label
- Jul 12 11:36:15 <MarioEdit> will branch if $13 is LESS than 20
- Jul 12 11:36:19 <MarioEdit> in hex
- Jul 12 11:36:24 <Selin> Yep
- Jul 12 11:36:27 <MarioEdit> so let's say
- Jul 12 11:36:29 <Selin> I know hex
- Jul 12 11:36:32 <MarioEdit> LDA $0DBF (coins)
- Jul 12 11:36:36 <MarioEdit> CMP #$10
- Jul 12 11:36:44 <Selin> Uh huh
- Jul 12 11:36:44 <MarioEdit> BCC Return
- Jul 12 11:36:51 <MarioEdit> that could check if you have less than 10 coins.
- Jul 12 11:37:02 <MarioEdit> which means
- Jul 12 11:37:04 <MarioEdit> you could use it
- Jul 12 11:37:05 <Selin> K
- Jul 12 11:37:08 <MarioEdit> in a shop block
- Jul 12 11:37:10 <MarioEdit> of some sorts
- Jul 12 11:37:12 <Selin> But
- Jul 12 11:37:23 <MarioEdit> yes?
- Jul 12 11:37:28 <Selin> Wouldn't that be 17 coins?
- Jul 12 11:37:34 <Selin> Cause it's hex, right?
- Jul 12 11:37:37 <MarioEdit> yes
- Jul 12 11:37:44 <MarioEdit> I'm not putting $'s in front of everything
- Jul 12 11:37:57 <MarioEdit> understand?
- Jul 12 11:38:01 <Selin> You'd need the hex value for everything
- Jul 12 11:38:02 <Selin> K
- Jul 12 11:38:08 <MarioEdit> now
- Jul 12 11:38:12 <MarioEdit> there is BMI, and BPL
- Jul 12 11:38:19 <Selin> Uh huh
- Jul 12 11:38:21 <MarioEdit> BMI will branch if the value is negative
- Jul 12 11:38:23 <MarioEdit> which means
- Jul 12 11:38:27 <MarioEdit> $80-$FF
- Jul 12 11:38:31 <Selin> K
- Jul 12 11:38:35 <MarioEdit> so
- Jul 12 11:38:37 <MarioEdit> LDA $7D
- Jul 12 11:38:39 <MarioEdit> BMI Label
- Jul 12 11:38:45 <MarioEdit> will branch if he's going up
- Jul 12 11:38:51 <Selin> Alright
- Jul 12 11:38:58 <MarioEdit> now
- Jul 12 11:39:03 <MarioEdit> BPL
- Jul 12 11:39:08 <MarioEdit> will branch if it's positive
- Jul 12 11:39:18 <MarioEdit> so it will branch if it's $00-$7F
- Jul 12 11:39:22 <Selin> Uh huh
- Jul 12 11:39:29 <MarioEdit> now, here's the tricky part
- Jul 12 11:39:40 <MarioEdit> if you have a CMP before the BMI/BPL
- Jul 12 11:39:44 <MarioEdit> let's say, ten
- Jul 12 11:39:45 <MarioEdit> then
- Jul 12 11:39:48 <MarioEdit> LDA $7D
- Jul 12 11:39:49 <MarioEdit> CMP #$10
- Jul 12 11:39:52 <Selin> Uh huh
- Jul 12 11:39:53 <MarioEdit> BPL Label
- Jul 12 11:39:59 <MarioEdit> will branch if the value
- Jul 12 11:40:02 <Selin> It branches below that?
- Jul 12 11:40:03 <MarioEdit> is from 10 - 8F
- Jul 12 11:40:10 <Selin> Oh
- Jul 12 11:40:11 <Selin> K
- Jul 12 11:40:17 <MarioEdit> and BMI
- Jul 12 11:40:26 <MarioEdit> will branch if it's 90 - 0F
- Jul 12 11:40:27 <Selin> So whatever number you had
- Jul 12 11:40:38 <Selin> Becomes the minimum
- Jul 12 11:40:40 <Selin> I guess
- Jul 12 11:40:49 <MarioEdit> you just add 10 to all of the limits
- Jul 12 11:40:53 <MarioEdit> so 80 + 10 = 90
- Jul 12 11:40:58 <MarioEdit> FF + 10 = 0F
- Jul 12 11:40:59 <Selin> Yep
- Jul 12 11:41:00 <Selin> K
- Jul 12 11:41:06 <MarioEdit> got it?
- Jul 12 11:41:11 <Selin> Yea
- Jul 12 11:41:22 <MarioEdit> there's also BVC and BVS
- Jul 12 11:41:27 <MarioEdit> but no need for that now
- Jul 12 11:41:28 <Selin> Can you save this Convo when it's dine
- Jul 12 11:41:32 <MarioEdit> yes
- Jul 12 11:41:32 <Selin> *done
- Jul 12 11:41:36 <MarioEdit> I have logs
- Jul 12 11:41:36 <Selin> And send to me vis pm
- Jul 12 11:41:40 <Selin> *via
- Jul 12 11:41:46 <MarioEdit> anyways
- Jul 12 11:41:49 <MarioEdit> on to math!
- Jul 12 11:41:53 <Selin> Cause I'm currently on my iPhone
- Jul 12 11:42:02 <Selin> I need logs so I can refer back
- Jul 12 11:42:03 <Selin> Ok
- Jul 12 11:42:06 <Selin> Math is food
- Jul 12 11:42:09 <MarioEdit> INC will increment A by one
- Jul 12 11:42:12 <Selin> *good
- Jul 12 11:42:16 <MarioEdit> so
- Jul 12 11:42:17 <Selin> Uh huh
- Jul 12 11:42:18 <MarioEdit> INC $0DBF
- Jul 12 11:42:23 <Selin> I know that
- Jul 12 11:42:24 <MarioEdit> will increase mario's coins
- Jul 12 11:42:25 <MarioEdit> by one
- Jul 12 11:42:27 <Selin> I think
- Jul 12 11:42:31 <MarioEdit> and DEC is decrement
- Jul 12 11:42:36 <Selin> K
- Jul 12 11:42:40 <MarioEdit> so DEC $0DBF will decrease mario's coins by one
- Jul 12 11:42:45 <MarioEdit> BUT
- Jul 12 11:42:48 <MarioEdit> what if
- Jul 12 11:42:52 <MarioEdit> you wanted to really add?
- Jul 12 11:43:04 <Selin> Add more than one
- Jul 12 11:43:05 <MarioEdit> you can't just use tons of INCs, right?
- Jul 12 11:43:12 <MarioEdit> if you wanted to add #$10
- Jul 12 11:43:12 <Selin> Nope
- Jul 12 11:43:15 <MarioEdit> why would you use
- Jul 12 11:43:23 <MarioEdit> #$10 INCs
- Jul 12 11:43:25 <Selin> 10 ins
- Jul 12 11:43:26 <MarioEdit> it's a waste of space
- Jul 12 11:43:28 <Selin> I know
- Jul 12 11:43:34 <Selin> *INCS
- Jul 12 11:43:35 <MarioEdit> so, there's CLC and ADC for that
- Jul 12 11:43:48 <Selin> uh hug
- Jul 12 11:43:49 <MarioEdit> CLC clears the carry flag (ignore)
- Jul 12 11:43:51 <Selin> *huh
- Jul 12 11:43:53 <MarioEdit> ADC adds with carry
- Jul 12 11:43:54 <Selin> K
- Jul 12 11:44:02 <MarioEdit> so
- Jul 12 11:44:04 <MarioEdit> LDA $0DBF
- Jul 12 11:44:06 <MarioEdit> CLC
- Jul 12 11:44:08 <MarioEdit> ADC #$10
- Jul 12 11:44:10 <MarioEdit> STA $0DBF
- Jul 12 11:44:18 <Selin> Alright
- Jul 12 11:44:24 <MarioEdit> you almost always will have to have CLC before the ADC
- Jul 12 11:44:29 <Selin> K
- Jul 12 11:44:33 <MarioEdit> except
- Jul 12 11:44:37 <Selin> So
- Jul 12 11:44:40 <Selin> That code
- Jul 12 11:44:42 <MarioEdit> if you use ADC #$00
- Jul 12 11:44:48 <MarioEdit> which will prevent overflow
- Jul 12 11:45:00 <MarioEdit> of the high byte of something
- Jul 12 11:45:06 <Selin> Loaded the coins, then cleared he carry
- Jul 12 11:45:06 <MarioEdit> for instance, Mario's X position
- Jul 12 11:45:14 <MarioEdit> yes
- Jul 12 11:45:16 <MarioEdit> then it adds 10
- Jul 12 11:45:17 <Selin> Then added 10 to the coins
- Jul 12 11:45:21 <Selin> Then saved it
- Jul 12 11:45:23 <Selin> :)
- Jul 12 11:45:23 <MarioEdit> and stores back to $0DBF
- Jul 12 11:45:27 <Selin> Yea
- Jul 12 11:45:27 <MarioEdit> awesome, right?
- Jul 12 11:45:33 <Selin> I'm starting to get this
- Jul 12 11:45:38 <MarioEdit> anyways
- Jul 12 11:45:44 <Selin> It's like learning another language
- Jul 12 11:45:49 <MarioEdit> if you want to move Mario #$10 pixels
- Jul 12 11:45:52 <MarioEdit> you can't just
- Jul 12 11:45:54 <MarioEdit> LDA $94
- Jul 12 11:45:55 <MarioEdit> CLC
- Jul 12 11:45:57 <MarioEdit> ADC #$10
- Jul 12 11:45:59 <MarioEdit> STA $94
- Jul 12 11:46:04 <Selin> K
- Jul 12 11:46:05 <MarioEdit> it will screw up
- Jul 12 11:46:11 <MarioEdit> the high byte
- Jul 12 11:46:15 <Selin> You gotta use x and y?
- Jul 12 11:46:17 <MarioEdit> nope
- Jul 12 11:46:21 <MarioEdit> you have to change $95
- Jul 12 11:46:22 <MarioEdit> as well
- Jul 12 11:46:25 <Selin> K
- Jul 12 11:46:29 <MarioEdit> otherwise, mario will go offscreen
- Jul 12 11:46:37 <Selin> Alright
- Jul 12 11:46:37 <MarioEdit> at some positions
- Jul 12 11:46:39 <MarioEdit> so
- Jul 12 11:46:43 <MarioEdit> you can fix it
- Jul 12 11:46:46 <MarioEdit> with LDA $95
- Jul 12 11:46:48 <MarioEdit> ADC #$00
- Jul 12 11:46:50 <MarioEdit> STA $95
- Jul 12 11:47:06 <MarioEdit> (don't ask why; it's complicated)
- Jul 12 11:47:11 <Selin> K
- Jul 12 11:47:16 <MarioEdit> now
- Jul 12 11:47:19 <MarioEdit> with subtraction
- Jul 12 11:47:29 <MarioEdit> if you want to subtract, you replace CLC with SEC
- Jul 12 11:47:32 <MarioEdit> which sets the carry flag
- Jul 12 11:47:36 <MarioEdit> and ADC with SBC
- Jul 12 11:47:43 <Selin> Uh huh
- Jul 12 11:47:50 <MarioEdit> so
- Jul 12 11:48:01 <MarioEdit> you can sort of make a shop block
- Jul 12 11:48:09 <MarioEdit> with that
- Jul 12 11:48:20 <MarioEdit> for instance
- Jul 12 11:48:23 <MarioEdit> LDA $0DBF
- Jul 12 11:48:25 <MarioEdit> CMP #$10
- Jul 12 11:48:27 <MarioEdit> BCC Return
- Jul 12 11:48:31 <MarioEdit> SEC
- Jul 12 11:48:34 <MarioEdit> SBC #$10
- Jul 12 11:48:36 <MarioEdit> STA $0DBF
- Jul 12 11:48:39 <Selin> Uh huh
- Jul 12 11:48:42 <MarioEdit> etc etc
- Jul 12 11:48:45 <Selin> Cool
- Jul 12 11:48:58 <MarioEdit> now
- Jul 12 11:49:03 <MarioEdit> to do multiplication
- Jul 12 11:49:05 <MarioEdit> there's two ways
- Jul 12 11:49:08 <MarioEdit> one, is a loop
- Jul 12 11:49:13 <Selin> K
- Jul 12 11:49:17 <MarioEdit> and the other is writing to a hardware register
- Jul 12 11:49:26 <Selin> Uh huh
- Jul 12 11:49:33 <MarioEdit> which I will explain in a second
- Jul 12 11:49:40 <Selin> K
- Jul 12 11:49:47 <MarioEdit> ok
- Jul 12 11:49:54 <MarioEdit> you store the values you want
- Jul 12 11:49:56 <MarioEdit> to $420B
- Jul 12 11:49:59 <MarioEdit> and the second one
- Jul 12 11:50:02 <MarioEdit> to $420C
- Jul 12 11:50:06 <MarioEdit> er
- Jul 12 11:50:09 <MarioEdit> $4202
- Jul 12 11:50:11 <MarioEdit> and $4203
- Jul 12 11:50:18 <Selin> I gotta sleep soon
- Jul 12 11:50:19 <MarioEdit> now
- Jul 12 11:50:24 <MarioEdit> it will take some cycles to process
- Jul 12 11:50:28 <Selin> In about 10 mins
- Jul 12 11:50:31 <Selin> Uh huh
- Jul 12 11:50:32 <MarioEdit> which is usually around 4-6
- Jul 12 11:50:35 <MarioEdit> so
- Jul 12 11:50:39 <MarioEdit> you can use NOP #4
- Jul 12 11:50:51 <MarioEdit> which will wait until it has enough time
- Jul 12 11:51:02 <MarioEdit> then, you can read the high part of the result
- Jul 12 11:51:04 <Selin> K
- Jul 12 11:51:07 <MarioEdit> from $4216
- Jul 12 11:51:10 <MarioEdit> and the low part
- Jul 12 11:51:12 <MarioEdit> from $4217
- Jul 12 11:51:33 <MarioEdit> so, uh
- Jul 12 11:51:36 <MarioEdit> LDA #$10
- Jul 12 11:51:39 <MarioEdit> STA $4202
- Jul 12 11:51:44 <MarioEdit> LDA #$20
- Jul 12 11:51:46 <MarioEdit> STA $4203
- Jul 12 11:51:48 <MarioEdit> NOP #4
- Jul 12 11:51:53 <MarioEdit> LDA $4216
- Jul 12 11:52:01 <MarioEdit> STA $00
- Jul 12 11:52:04 <MarioEdit> LDA $4217
- Jul 12 11:52:06 <MarioEdit> STA $01
- Jul 12 11:52:08 <MarioEdit> now
- Jul 12 11:52:16 <MarioEdit> $00 and $01 will contain the product
- Jul 12 11:52:21 <Selin> K
- Jul 12 11:52:38 <MarioEdit> and there's also division
- Jul 12 11:52:42 <MarioEdit> but let's get to that
- Jul 12 11:52:43 <MarioEdit> later
- Jul 12 11:52:47 <Selin> Oh god
- Jul 12 11:52:51 <Selin> K
- Jul 12 11:52:57 <MarioEdit> anyways
- Jul 12 11:53:02 <MarioEdit> there's a really simple way
- Jul 12 11:53:06 <MarioEdit> to multiply by 2
- Jul 12 11:53:09 <MarioEdit> or divide by 2
- Jul 12 11:53:17 <MarioEdit> ASL
- Jul 12 11:53:19 <MarioEdit> and LSR
- Jul 12 11:53:23 <Selin> Alright
- Jul 12 11:53:24 <MarioEdit> what do they do?
- Jul 12 11:53:24 <Selin> K
- Jul 12 11:53:25 <MarioEdit> see
- Jul 12 11:53:33 <MarioEdit> ASL shifts the numbers (in binary)
- Jul 12 11:53:35 <MarioEdit> to the left once
- Jul 12 11:53:37 <MarioEdit> so...
- Jul 12 11:53:41 <MarioEdit> 0100
- Jul 12 11:53:45 <MarioEdit> becomes 1000
- Jul 12 11:53:56 <MarioEdit> and since binary goes in powers of 2...
- Jul 12 11:54:00 <MarioEdit> it multiplies it by 2
- Jul 12 11:54:07 <Selin> K
- Jul 12 11:54:12 <MarioEdit> LSR will change 0100
- Jul 12 11:54:14 <MarioEdit> to 0010
- Jul 12 11:54:26 <MarioEdit> rounded down
- Jul 12 11:54:39 <Selin> K
- Jul 12 11:54:44 <MarioEdit> so LSR divides by 2, but rounded down
- Jul 12 11:55:15 <MarioEdit> now, there's also ROL
- Jul 12 11:55:17 <MarioEdit> and ROR
- Jul 12 11:55:21 <MarioEdit> but that's too far
- Jul 12 11:55:22 <Selin> Uh huh
- Jul 12 11:55:25 <Selin> K
- Jul 12 11:55:43 <MarioEdit> so
- Jul 12 11:55:45 <MarioEdit> review
- Jul 12 11:55:46 <Selin> Anything else?
- Jul 12 11:55:52 <Selin> Cause I'm getting tired
- Jul 12 11:55:54 <MarioEdit> how do you add by 20?
- Jul 12 11:55:58 <Selin> And I can't think straight
- Jul 12 11:56:09 <MarioEdit> erm, uh
- Jul 12 11:56:10 <MarioEdit> ok
- Jul 12 11:56:28 <MarioEdit> I'll talk when you get back on later
- Jul 12 11:56:30 <MarioEdit> k?
- Jul 12 11:56:45 <Selin> ADC #$20
- Jul 12 11:56:53 <MarioEdit> you have to put CLC before it
- Jul 12 11:56:55 <Selin> Which is in hex though
- Jul 12 11:56:57 <Selin> Yea
- Jul 12 11:57:02 <Selin> Was going to say that
- Jul 12 11:57:07 <Selin> Alright
- Jul 12 11:57:08 <Selin> Night
- Jul 12 11:57:12 <MarioEdit> night
- Jul 12 11:57:37 Selin (seliniphon@FC74DAB4.2D629580.452B6A9D.IP) has left #asm
- **** ENDING LOGGING AT Mon Jul 12 11:57:51 2010
- **** BEGIN LOGGING AT Tue Jul 13 07:27:43 2010
- Jul 13 07:27:43 Now talking on #asm
- Jul 13 07:27:51 <MarioEdit> ok
- Jul 13 07:27:52 <MarioEdit> so
- Jul 13 07:28:03 <MarioEdit> now, we're at some opcodes
- Jul 13 07:28:08 <Selin> Alright
- Jul 13 07:28:10 <MarioEdit> BRA, JMP, and JML
- Jul 13 07:28:16 <Selin> Can you just hold on a second
- Jul 13 07:28:21 <MarioEdit> alright
- Jul 13 07:28:42 [MarioEdit] (MarioE@caffie-A86EB986.dynamic.ip.windstream.net): ??
- Jul 13 07:28:42 [MarioEdit] is connecting from *@h125.203.21.98.dynamic.ip.windstream.net 98.21.203.125
- Jul 13 07:28:42 [MarioEdit] is a registered nick
- Jul 13 07:28:42 [MarioEdit] #asm &#dummies #serioushax +#finishthatsentence #smwc #ProjectGalaxy
- Jul 13 07:28:42 [MarioEdit] irc.caffie.net :CaffieNET
- Jul 13 07:28:42 [MarioEdit] idle 00:00:21, signon: Mon Jul 12 16:39:51
- Jul 13 07:28:42 [MarioEdit] End of WHOIS list.
- Jul 13 07:28:59 <Selin> Back
- Jul 13 07:29:04 <MarioEdit> ok
- Jul 13 07:29:19 <MarioEdit> those commands are used to "jump" around
- Jul 13 07:29:27 <MarioEdit> BRA will always branch to somewhere
- Jul 13 07:29:27 <Selin> Ok
- Jul 13 07:29:42 <MarioEdit> and JMP can jump to anywhere in the current bank
- Jul 13 07:29:49 <MarioEdit> which
- Jul 13 07:29:56 <MarioEdit> is a limit of 8000 bytes
- Jul 13 07:30:07 <Selin> k
- Jul 13 07:30:08 <MarioEdit> and starts at xx8000
- Jul 13 07:30:20 <MarioEdit> is this getting to complicated?
- Jul 13 07:30:23 <MarioEdit> too*
- Jul 13 07:30:31 <Selin> no
- Jul 13 07:30:34 <MarioEdit> ok
- Jul 13 07:30:40 <MarioEdit> and JML can go anywhere it wants
- Jul 13 07:30:44 <MarioEdit> in the whole ROM
- Jul 13 07:30:44 <Selin> i'll tell you if I dont get it
- Jul 13 07:30:52 <Selin> k
- Jul 13 07:31:06 <MarioEdit> next up, is JSL and JSR
- Jul 13 07:31:15 <Selin> k
- Jul 13 07:31:19 <MarioEdit> JSR basically goes to some code
- Jul 13 07:31:24 <MarioEdit> HOWEVER
- Jul 13 07:31:38 <MarioEdit> it runs the code, and continues back where it left off
- Jul 13 07:31:45 <MarioEdit> so,
- Jul 13 07:31:50 <MarioEdit> JSR TestCode
- Jul 13 07:31:58 <MarioEdit> LDA #$10
- Jul 13 07:32:01 <MarioEdit> STA $0DBE
- Jul 13 07:32:03 <MarioEdit> RTL
- Jul 13 07:32:06 <MarioEdit> TestCode:
- Jul 13 07:32:08 <MarioEdit> RTS
- Jul 13 07:32:16 <MarioEdit> will continue after that point
- Jul 13 07:32:30 <Selin> k
- Jul 13 07:32:39 <MarioEdit> and, keep in mind that if it's accessed with JSR
- Jul 13 07:32:43 <MarioEdit> it must end with JSL
- Jul 13 07:32:49 <MarioEdit> er
- Jul 13 07:32:50 <Selin> k
- Jul 13 07:32:51 <MarioEdit> RTS
- Jul 13 07:32:54 <MarioEdit> lol
- Jul 13 07:33:09 <MarioEdit> JSR has a limit of 8000 bytes
- Jul 13 07:33:17 <Selin> Alright
- Jul 13 07:33:19 <MarioEdit> JSL, however, can go anywhere it wants
- Jul 13 07:33:22 <MarioEdit> in the whole ROM
- Jul 13 07:33:27 <Selin> Alright
- Jul 13 07:33:30 <MarioEdit> however, it must end in RTL
- Jul 13 07:33:38 <MarioEdit> (the place you JSL'd to)
- Jul 13 07:33:44 <Selin> yep
- Jul 13 07:33:45 <Selin> Ok
- Jul 13 07:33:51 <MarioEdit> so, uh, look up the rom map
- Jul 13 07:33:54 <MarioEdit> at smwcentral
- Jul 13 07:34:02 <MarioEdit> and figure out how to kill mario
- Jul 13 07:34:12 <Selin> rom or ram
- Jul 13 07:34:16 <MarioEdit> ROM
- Jul 13 07:34:43 <Selin> 07806 $00:F606 35 bytes Subroutine Death Subroutine (JSL to it to kill Mario). x7807 controls the speed at which the player jumps up ($7E007D format). x780B controls which music is played when Mario dies. x781C controls the amount of time Mario stays on screen before dying.
- Jul 13 07:34:56 <Selin> if you JSL to that position
- Jul 13 07:34:57 <Selin> It kills mario
- Jul 13 07:35:01 <MarioEdit> yep
- Jul 13 07:35:15 <MarioEdit> so, uh, get it?
- Jul 13 07:35:20 <Selin> Yep
- Jul 13 07:35:45 <MarioEdit> now, we're on to the stack
- Jul 13 07:35:59 <MarioEdit> which can be used to temporarily store a value
- Jul 13 07:36:16 <MarioEdit> we can use the opcode PHA to push the current "A" onto the "stack"
- Jul 13 07:36:22 <MarioEdit> which can preserve the value
- Jul 13 07:36:30 <MarioEdit> in case it gets overwritten
- Jul 13 07:36:35 <MarioEdit> BUT
- Jul 13 07:36:43 <MarioEdit> if you don't pull it back with PLA
- Jul 13 07:36:47 <MarioEdit> it WILL crash
- Jul 13 07:36:51 <Selin> k
- Jul 13 07:36:55 <MarioEdit> as the return address is on the stack
- Jul 13 07:37:00 <MarioEdit> and if you don't pull,
- Jul 13 07:37:05 <MarioEdit> it'll get the wrong return address
- Jul 13 07:37:11 <MarioEdit> and lead to code that may crash!
- Jul 13 07:37:35 <MarioEdit> now
- Jul 13 07:37:47 <MarioEdit> there are some more stack commands
- Jul 13 07:37:51 <MarioEdit> care to learn them?
- Jul 13 07:38:01 <Selin> k
- Jul 13 07:38:21 <MarioEdit> alright
- Jul 13 07:38:23 <MarioEdit> now
- Jul 13 07:38:33 <MarioEdit> PEA will push a 16-bit value directly onto the stack
- Jul 13 07:38:42 <MarioEdit> PEA $0A03
- Jul 13 07:38:52 <MarioEdit> will push "0A03" onto the stack
- Jul 13 07:38:54 <MarioEdit> simple, right?
- Jul 13 07:38:57 <Selin> Ok
- Jul 13 07:39:00 <Selin> Yea
- Jul 13 07:39:03 <MarioEdit> now
- Jul 13 07:39:10 <MarioEdit> the next opcode is crossing the line
- Jul 13 07:39:10 <Selin> Even if I dont fully understand it
- Jul 13 07:39:17 <MarioEdit> at addressing modes
- Jul 13 07:39:19 <Selin> I can go back over it in the logs
- Jul 13 07:39:21 <MarioEdit> still want to learn it?
- Jul 13 07:39:26 <Selin> Sure
- Jul 13 07:39:28 <MarioEdit> ok
- Jul 13 07:39:39 <MarioEdit> PEI pushes the "ineffective" address onto the stack
- Jul 13 07:39:48 <Selin> Uh huh
- Jul 13 07:39:50 <MarioEdit> which can be said as a "pointer" of some sort
- Jul 13 07:39:51 <MarioEdit> so
- Jul 13 07:39:58 <MarioEdit> PEI ($00)
- Jul 13 07:40:05 <MarioEdit> will push the value at $00
- Jul 13 07:40:07 <MarioEdit> and $01
- Jul 13 07:40:12 <Selin> k
- Jul 13 07:40:22 <MarioEdit> next, there is PER
- Jul 13 07:40:33 <MarioEdit> which is mainly used to push a return address
- Jul 13 07:40:40 <Selin> PER, whats that do?
- Jul 13 07:40:42 <MarioEdit> in case a subroutine you want
- Jul 13 07:40:43 <Selin> lol
- Jul 13 07:40:47 <Selin> k
- Jul 13 07:40:55 <MarioEdit> that's basically what it does
- Jul 13 07:40:56 <MarioEdit> lol
- Jul 13 07:41:00 <MarioEdit> in case a subroutine you want
- Jul 13 07:41:04 <MarioEdit> ends with RTS
- Jul 13 07:41:10 <Selin> k
- Jul 13 07:41:13 <MarioEdit> in this case, you will have to do some stuff
- Jul 13 07:41:23 <MarioEdit> and then push the earliest RTS
- Jul 13 07:41:28 <MarioEdit> RTL*
- Jul 13 07:41:42 <MarioEdit> PHB pushes the current code bank
- Jul 13 07:41:44 <MarioEdit> that's all
- Jul 13 07:41:49 <MarioEdit> and PLB pulls it back
- Jul 13 07:41:56 <Selin> k
- Jul 13 07:42:04 <MarioEdit> PHD pulls the direct page
- Jul 13 07:42:10 <Selin> what do you mean by "current Code Bank"
- Jul 13 07:42:16 <MarioEdit> well
- Jul 13 07:42:25 <MarioEdit> it just pushes the bank that the code is running from
- Jul 13 07:42:33 <Selin> Oh!
- Jul 13 07:42:34 <Selin> Ok
- Jul 13 07:42:42 <MarioEdit> uh, let's skip PHD
- Jul 13 07:42:48 <MarioEdit> it's far out of this
- Jul 13 07:42:52 <Selin> Also, if I can just butt in for a sec
- Jul 13 07:42:55 <Selin> I talked to roy
- Jul 13 07:43:07 <Selin> He's going to make me the fultter jump
- Jul 13 07:43:07 <Selin> =D
- Jul 13 07:43:10 <MarioEdit> awesome
- Jul 13 07:43:11 <MarioEdit> :)
- Jul 13 07:43:12 <Selin> Ok
- Jul 13 07:43:14 <Selin> Lets go on
- Jul 13 07:43:15 <Selin> =D
- Jul 13 07:43:15 <MarioEdit> anyways
- Jul 13 07:43:28 <MarioEdit> PHP pushes the current processor bits
- Jul 13 07:43:37 <MarioEdit> (don't learn it now)
- Jul 13 07:43:43 <MarioEdit> and PLP pushes it back
- Jul 13 07:43:46 <MarioEdit> ...
- Jul 13 07:43:48 <Selin> k]
- Jul 13 07:43:49 <MarioEdit> pulles*
- Jul 13 07:43:52 <MarioEdit> ...
- Jul 13 07:43:54 <MarioEdit> pulls**
- Jul 13 07:43:56 <Selin> Isnt PHP also a computer language?
- Jul 13 07:43:58 <Selin> LOL
- Jul 13 07:44:00 <MarioEdit> yes
- Jul 13 07:44:01 <MarioEdit> lol
- Jul 13 07:44:07 <Selin> heh
- Jul 13 07:44:10 <Selin> Anyway
- Jul 13 07:44:13 <Selin> Kepe going
- Jul 13 07:44:15 <MarioEdit> now, here is a list
- Jul 13 07:44:29 <Selin> *keep
- Jul 13 07:44:52 <MarioEdit> Binary commands, transfer stuff, processor stuff
- Jul 13 07:44:56 <MarioEdit> which do you want to do
- Jul 13 07:45:10 <Selin> Uhm
- Jul 13 07:45:15 <Selin> Well, I dont know
- Jul 13 07:45:20 <MarioEdit> pick randomly
- Jul 13 07:45:22 <Selin> I'm not sure whats the advantage of either one
- Jul 13 07:45:29 <MarioEdit> I'd choose the first
- Jul 13 07:45:33 <MarioEdit> if I were you
- Jul 13 07:45:34 <Selin> Binary?
- Jul 13 07:45:35 <Selin> Ok
- Jul 13 07:45:43 <MarioEdit> ...
- Jul 13 07:45:44 <MarioEdit> ok
- Jul 13 07:45:47 <MarioEdit> this might be long
- Jul 13 07:45:49 <MarioEdit> very long
- Jul 13 07:45:53 <Selin> Ok
- Jul 13 07:45:56 <Selin> If its very lonmg
- Jul 13 07:45:59 <MarioEdit> now, there is an opcode called "AND"
- Jul 13 07:45:59 <Selin> We might have to cut it here
- Jul 13 07:46:07 <Selin> *long
- Jul 13 07:46:17 <MarioEdit> what time is it for you?
- Jul 13 07:46:29 <Selin> 9:16
- Jul 13 07:46:30 <Selin> pm
- Jul 13 07:46:35 <Selin> But I want to work on my hack
- Jul 13 07:46:38 <MarioEdit> aww
- Jul 13 07:46:42 <Selin> And my new site
- Jul 13 07:46:46 <MarioEdit> at least 9:30
- Jul 13 07:46:48 <Selin> Sorry
- Jul 13 07:46:48 <MarioEdit> ok?
- Jul 13 07:46:52 <Selin> Ok
- Jul 13 07:46:54 <Selin> 15 minutes
- Jul 13 07:46:58 <MarioEdit> anyways
- Jul 13 07:47:01 <Selin> You were talking about AND
- Jul 13 07:47:02 <MarioEdit> take windows calculator
- Jul 13 07:47:10 <MarioEdit> and convert "20" to binary
- Jul 13 07:47:16 <MarioEdit> and post it here
- Jul 13 07:47:35 <Selin> k
- Jul 13 07:48:02 <Selin> 10100
- Jul 13 07:48:14 <MarioEdit> ok
- Jul 13 07:48:19 <MarioEdit> and take 25
- Jul 13 07:48:21 <MarioEdit> and convert it
- Jul 13 07:48:24 <Selin> uh huh
- Jul 13 07:48:34 <Selin> 11001
- Jul 13 07:48:48 <MarioEdit> alright
- Jul 13 07:48:51 <MarioEdit> 10100
- Jul 13 07:48:53 <MarioEdit> 11001
- Jul 13 07:49:02 <MarioEdit> ok
- Jul 13 07:49:11 <MarioEdit> look at it
- Jul 13 07:49:20 <MarioEdit> if you AND it
- Jul 13 07:49:23 <Selin> Yep
- Jul 13 07:49:26 <MarioEdit> 1 and 1 will become 1
- Jul 13 07:49:28 <Selin> K
- Jul 13 07:49:30 <MarioEdit> 1 and 0 become 0
- Jul 13 07:49:35 <MarioEdit> 0 and 1 become 0
- Jul 13 07:49:39 <MarioEdit> and 0 and 0 become 0
- Jul 13 07:49:46 <MarioEdit> so, what is the answer
- Jul 13 07:49:48 <MarioEdit> if you and it?
- Jul 13 07:50:09 <MarioEdit> also don't use windows calc
- Jul 13 07:50:09 <Selin> Uhm.
- Jul 13 07:50:17 <Selin> 10000
- Jul 13 07:50:21 <MarioEdit> ow
- Jul 13 07:50:22 <MarioEdit> wow
- Jul 13 07:50:22 <Selin> I think
- Jul 13 07:50:23 <MarioEdit> you got it
- Jul 13 07:50:24 <MarioEdit> :D
- Jul 13 07:50:27 <Selin> =D
- Jul 13 07:50:28 <Selin> Listen
- Jul 13 07:50:37 <Selin> Its like 2 positives make a positive
- Jul 13 07:50:47 <Selin> Hold
- Jul 13 07:50:48 <Selin> One
- Jul 13 07:50:56 <Selin> Wtf am I going on about
- Jul 13 07:51:00 <MarioEdit> anyways
- Jul 13 07:51:01 <Selin> Lets just keep going
- Jul 13 07:51:03 <Selin> o_O
- Jul 13 07:51:05 <MarioEdit> now, there's ORA
- Jul 13 07:51:14 <MarioEdit> 1 and 1 become 1
- Jul 13 07:51:18 <MarioEdit> 1 and 0 become 1
- Jul 13 07:51:22 <MarioEdit> 0 and 1 become 1
- Jul 13 07:51:25 <MarioEdit> 0 and 0 become 0
- Jul 13 07:51:32 <MarioEdit> so if there's at least a 1
- Jul 13 07:51:35 <MarioEdit> it'll be one
- Jul 13 07:51:37 <MarioEdit> at the result
- Jul 13 07:51:43 <Selin> k
- Jul 13 07:51:51 <MarioEdit> so, ORA those values
- Jul 13 07:52:02 <Selin> 11101
- Jul 13 07:52:08 <MarioEdit> yep
- Jul 13 07:52:13 <MarioEdit> now, there's another one
- Jul 13 07:52:15 <MarioEdit> EOR
- Jul 13 07:52:20 <MarioEdit> which is exclusive OR
- Jul 13 07:52:26 <MarioEdit> 1 and 1 become 0
- Jul 13 07:52:30 <MarioEdit> 1 and 0 become 1
- Jul 13 07:52:34 <MarioEdit> 0 and 1 become 1
- Jul 13 07:52:37 <MarioEdit> 0 and 0 become 0
- Jul 13 07:52:51 <Selin> 01101
- Jul 13 07:53:00 <MarioEdit> yep
- Jul 13 07:53:11 <MarioEdit> ok
- Jul 13 07:53:20 <MarioEdit> ROR rotates the values to the right, one
- Jul 13 07:53:28 <Selin> k
- Jul 13 07:53:35 <MarioEdit> and may or may not rotate back around
- Jul 13 07:53:37 <MarioEdit> so
- Jul 13 07:53:39 <MarioEdit> 01101
- Jul 13 07:53:42 <MarioEdit> if you ROR it
- Jul 13 07:53:50 <MarioEdit> you get 10110
- Jul 13 07:53:58 <MarioEdit> IIRC
- Jul 13 07:53:58 <Selin> My only question
- Jul 13 07:54:04 <Selin> Is where does binary come into SMW?
- Jul 13 07:54:10 <MarioEdit> well
- Jul 13 07:54:15 <MarioEdit> look at $77
- Jul 13 07:54:18 <MarioEdit> RAM Map
- Jul 13 07:54:29 <Selin> Yea
- Jul 13 07:54:38 <MarioEdit> and $15
- Jul 13 07:54:40 <MarioEdit> and $16
- Jul 13 07:54:46 <MarioEdit> and $17
- Jul 13 07:54:47 <MarioEdit> and $18
- Jul 13 07:54:50 <Selin> Uh huh
- Jul 13 07:55:00 <Selin> I'm looking at them
- Jul 13 07:55:09 <MarioEdit> it's a way to use more "values" per ram address
- Jul 13 07:55:16 <Selin> Uh huh
- Jul 13 07:55:16 <MarioEdit> like
- Jul 13 07:55:27 <MarioEdit> without using tons and tons of other addresses
- Jul 13 07:55:30 <MarioEdit> of combinations
- Jul 13 07:55:35 <MarioEdit> just put them into one!
- Jul 13 07:55:42 <MarioEdit> so
- Jul 13 07:55:57 <Selin> K
- Jul 13 07:56:02 <MarioEdit> you can easily set it
- Jul 13 07:56:04 <MarioEdit> with TSB
- Jul 13 07:56:06 <MarioEdit> and TRB
- Jul 13 07:56:08 <MarioEdit> and ORA
- Jul 13 07:56:22 <MarioEdit> and not have to worry
- Jul 13 07:56:22 <Selin> k
- Jul 13 07:56:30 <MarioEdit> speaking of which
- Jul 13 07:56:38 <MarioEdit> TSB is kinda complicated
- Jul 13 07:56:45 <MarioEdit> it's a short version of
- Jul 13 07:56:46 <Selin> Ok
- Jul 13 07:56:50 <MarioEdit> LDA $77
- Jul 13 07:56:52 <MarioEdit> ORA #$04
- Jul 13 07:56:53 <MarioEdit> STA $77
- Jul 13 07:56:56 <MarioEdit> etc
- Jul 13 07:57:00 <MarioEdit> which can be shortened to
- Jul 13 07:57:03 <MarioEdit> LDA #$04
- Jul 13 07:57:05 <MarioEdit> TSB $77
- Jul 13 07:57:11 <Selin> k
- Jul 13 07:57:16 <MarioEdit> now
- Jul 13 07:57:20 <MarioEdit> TRB
- Jul 13 07:57:24 <MarioEdit> shortens
- Jul 13 07:57:26 <MarioEdit> LDA $77
- Jul 13 07:57:31 <MarioEdit> AND #$04
- Jul 13 07:57:33 <MarioEdit> EOR #$FF
- Jul 13 07:57:34 <Selin> k
- Jul 13 07:57:36 <MarioEdit> STA $77
- Jul 13 07:57:40 <MarioEdit> into LDA #$04
- Jul 13 07:57:42 <MarioEdit> TRB $77
- Jul 13 07:57:51 <MarioEdit> so
- Jul 13 07:58:01 <MarioEdit> TRB basically "resets" the values
- Jul 13 07:58:02 <MarioEdit> that match
- Jul 13 07:58:10 <MarioEdit> i.e. if a and the address both have one
- Jul 13 07:58:15 <MarioEdit> it changes them into 0
- Jul 13 07:58:36 <MarioEdit> anyways
- Jul 13 07:58:46 <MarioEdit> there's one left
- Jul 13 07:58:50 <MarioEdit> I don't know if there's enough time
- Jul 13 07:58:52 <Selin> ok
- Jul 13 07:59:00 <Selin> I can wait extra time
- Jul 13 07:59:00 <MarioEdit> ok
- Jul 13 07:59:02 <MarioEdit> there's BIT
- Jul 13 07:59:09 <Selin> God, its not like i'm sleeping
- Jul 13 07:59:09 <MarioEdit> which basically, is a bit test
- Jul 13 07:59:11 <Selin> Ok
- Jul 13 07:59:11 <MarioEdit> =P
- Jul 13 07:59:13 <MarioEdit> so
- Jul 13 07:59:18 <MarioEdit> if you do BIT #$01
- Jul 13 07:59:22 <MarioEdit> it checks the 1st bit
- Jul 13 07:59:28 <MarioEdit> and if you do BNE after that
- Jul 13 07:59:35 <Selin> Ok
- Jul 13 07:59:37 <MarioEdit> it branchs if it is equal to 1
- Jul 13 07:59:42 <MarioEdit> however
- Jul 13 07:59:48 <MarioEdit> BIT doesn't change "A"
- Jul 13 07:59:51 <MarioEdit> at all
- Jul 13 07:59:57 <Selin> ok
- Jul 13 08:00:02 <MarioEdit> so
- Jul 13 08:00:07 <MarioEdit> here's some useful applications
- Jul 13 08:00:11 <MarioEdit> in fact, VERY
- Jul 13 08:00:16 <MarioEdit> ok
- Jul 13 08:00:25 <MarioEdit> 1. How do I check if somebody is holding right?
- Jul 13 08:00:40 <Selin> Hmm
- Jul 13 08:00:45 <MarioEdit> hint:
- Jul 13 08:00:48 <MarioEdit> you use AND
- Jul 13 08:00:55 <MarioEdit> why?
- Jul 13 08:01:02 <MarioEdit> AND stays 1 if both values are 1
- Jul 13 08:01:03 <MarioEdit> so...
- Jul 13 08:01:16 <Selin> Oh.
- Jul 13 08:01:17 <Selin> Ok
- Jul 13 08:02:04 <MarioEdit> and if you and 0...
- Jul 13 08:02:08 <MarioEdit> it will always be 0
- Jul 13 08:02:13 <MarioEdit> see where I'm getting?
- Jul 13 08:02:24 <Selin> Yeo
- Jul 13 08:02:28 <MarioEdit> so
- Jul 13 08:02:35 <MarioEdit> what number do you AND it with
- Jul 13 08:03:12 <Selin> For right>
- Jul 13 08:03:19 <MarioEdit> yep
- Jul 13 08:03:25 <Selin> Wouldnt it be 1
- Jul 13 08:03:30 <Selin> 01
- Jul 13 08:03:33 <Selin> sorry, 01
- Jul 13 08:03:41 <MarioEdit> yep
- Jul 13 08:03:43 <MarioEdit> :D
- Jul 13 08:03:55 <Selin> Ok
- Jul 13 08:03:55 <Selin> =D
- Jul 13 08:04:01 <MarioEdit> last one
- Jul 13 08:04:03 <Selin> Alright
- Jul 13 08:04:10 <Selin> Make sure its the last one
- Jul 13 08:04:16 <Selin> I want to work on my new SMW hacking site
- Jul 13 08:04:20 <MarioEdit> force the player to let go of "right"
- Jul 13 08:04:22 <Selin> Maybe you might want to join
- Jul 13 08:04:25 <Selin> :D
- Jul 13 08:04:37 <MarioEdit> hint: use TRB
- Jul 13 08:05:07 <Selin> LDA #$00
- Jul 13 08:05:19 <Selin> TRB $15
- Jul 13 08:05:23 <MarioEdit> close
- Jul 13 08:05:25 <MarioEdit> it's not 00
- Jul 13 08:05:28 <MarioEdit> :P
- Jul 13 08:05:35 <MarioEdit> what is the value for right?
- Jul 13 08:05:39 <Selin> 01
- Jul 13 08:05:43 <MarioEdit> so...
- Jul 13 08:05:47 <Selin> Oh!
- Jul 13 08:05:47 <MarioEdit> what do you do?
- Jul 13 08:06:02 <Selin> Its either call on the right value, or the left one
- Jul 13 08:06:24 <Selin> LDA #$02?
- Jul 13 08:06:29 <MarioEdit> right
- Jul 13 08:06:32 <MarioEdit> as in
- Jul 13 08:06:34 <MarioEdit> "right"
- Jul 13 08:06:39 <Selin> Oh
- Jul 13 08:06:39 <Selin> K
- Jul 13 08:06:43 <Selin> LODA #$01 then
- Jul 13 08:06:45 <Selin> *LDA
- Jul 13 08:06:46 <MarioEdit> yep
- Jul 13 08:06:57 <MarioEdit> next up, is addressing modes
- Jul 13 08:06:59 <MarioEdit> but let's
- Jul 13 08:07:01 <MarioEdit> not do that
- Jul 13 08:07:02 <MarioEdit> now
- Jul 13 08:07:08 <Selin> Yea
- Jul 13 08:07:21 <Selin> You should join my new SMW hacking site
- Jul 13 08:07:27 <Selin> #FireFlight
- Jul 13 08:07:31 <Selin> Is the channel
- Jul 13 08:07:34 <Selin> :D
- Jul 13 08:07:45 Selin (Tomster_21@FC74DAB4.2D629580.452B6A9D.IP) has left #asm
- **** ENDING LOGGING AT Tue Jul 13 08:08:09 2010
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement