Language…
16 users online: Absnormal, GigaCrash, Gordon JamCast, Hamilton64,  icrawfish, KlonoA13Phill, Knetog, Luigi_master1, Mane Bros., Nciktendo, S.U, Squiggs, taste1122, TheBourgyman,  Yoshioshi59_, Zavok - Guests: 66 - Bots: 215
Users: 55,734 (2,331 active)
Latest user: NextGenGaming

ASM game experiment: let's make a patch, one line at a time (NOW FINISHED)

Super Mario WorldOther

Just had another silly idea and thought it'd be worth a try. Maybe it'll work out, maybe it won't.

In the spirit of old forum games like this, let's write some ASM together! Everyone contributes one line at a time, and ideally at the end we'll have a working code that does... something.

The title says "patch" for catchiness, but technically we'd probably better off writing an uberASM code to save us the boilerplate of hijacking, freecode and all that.

rules:
- write one line of code at a time
- let's no be too strict on what counts as one line: you get label definitions for free, and things that go together like CLC : ADC are also fine.
- try not to break things! A random BRK is no fun. The plan is to get something ridiculous but working.
- I'll reserve the right to exclude or correct lines that won't assemble properly or ruin the fun.
- at the end (whenever it feels like the end) I'll post the compiled code and try to comment on what it does.

Again, maybe this is too crazy to work out (or it'll break some postcount++ rule?), but here goes nothing.

I'll start us off with:

Code
LDA $73


 


 
REP #$20
Code
SED

May have been inspired by your previous works.
sta $86
Code
ADC $16
TAX
NOP


Okay, I'll bite.
Code
CMP #$03



St. Clair Publications: Where good girls just want to have fun this Christmas!

Other places you can find me: LiveJournal | Last.FM

We're in 16-bit mode.
db $00
Code
PHA
STY $0F48
EOR $00,x
PLY : PLX
Code
STA $13CC
Code
SEP #$20 : STA $19
Code
CPY #$10 : BNE +

Someone feel free to insert the next label wherever they like
INC $19
+
DEC $19

Super Mario WorldOther