Skip to content
nicholasbs edited this page Dec 3, 2011 · 1 revision

Puts a four-byte list starting at 0xFB. The length of the list (4) is stored at 0xFA. It sorts the list (in place) in ascending order using Bubble sort.

A9 FA 8D 30 00 A9 00 8D
31 00 A9 04 8D FA 00 A9
05 8D FB 00 A9 01 8D FC
00 A9 02 8D FD 00 A9 04
8D FE 00 A0 00 8C EB 00
B1 30 AA C8 CA B1 30 C8
D1 30 90 11 F0 0F 48 B1
30 88 91 30 68 C8 91 30
A9 FF 8D EB 00 CA D0 E5
2C EB 00 30 D6 60 00

(Modified from this assembly code.)

Clone this wiki locally