Language…
18 users online:  AmperSam,  Anorakun, Beed28, DanMario24YT, gizmo_321, Golden Yoshi, Green, Hammerer, JezJitzu, Mohamad20ZX, OrangeBronzeDaisy, Papangu, recam, Serge, signature_steve, SMW Magic, Spedinja, TrashCity - Guests: 287 - Bots: 430
Users: 64,795 (2,370 active)
Latest user: mathew

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