#asm68k
Explore tagged Tumblr posts
vadapega · 2 years ago
Text
Tumblr media
TIME TO BE AN OLD MAN AND RANT ABOUT ASSEMBLERS AND DATES.
So I'm working on an April 1st Project as y'all may expect me to and as per usual, I grab the Sonic 1 disassembly off of the Retro Github (labels are up to date, stuff is tidy) and find that the build file now has a lua file next to it and I'm like "huh, that's weird, but alright"
But the more I dig in, I realise they've changed the assembler from ASM68K to AS
Now, this is normally not a big deal, outside of the assembler being ASs slow, it has most if not all instructions for 68K assembly and supports other chips (including the Z80 which is likely why it was swapped for it) and is supported by more systems than just windows.
The problem, outside of the aforementioned slowness every time you build, is the difference in fetching the current system date (I like to have the build date on the header itself nowadays instead of an arbitrary version number)
Tumblr media Tumblr media
This is my usual Date function in ASM68K (top/left), it's a big mess because admitedly, I'm not a good coder (literally been proven this can be done more efficiently (bottom/right))
AS doesn't have these constants and only has DATE for fetching the date... which is... Month/Day/Year.... I don't like that at all
Furthermore it doesn't add a 0 for single digit days / months, which makes it a bigger burden to work with.
Tumblr media
FETCH STRINGS, CUT STUFF, ADD ZERO, AAAAAAAAAAAAAAA
At least time is straightforward (though for some reason it includes the miliseconds)
Oh god I hope it accounts for the hours properly, it's way past 10 AM so I can't tell yet.
On the bright side, I can now use this for Sonic 2 and 3 (they've always been AS) but now I have to slow the fuck down when building and make sure shit is tidy or I'll have to wait another eternity.
Tumblr media
I made this gif back in 2021 and it's more relevant now than ever.
11 notes · View notes
koney-scanlines · 5 years ago
Photo
Tumblr media Tumblr media Tumblr media Tumblr media
aMigA pLAyGrounD AmigA DEmo wRitTEn in AssEMBLy
17 notes · View notes