ASM Demo: Magical Assmbler Spooky Ectoplasmic Gloop Gasm

Start a work log and update it occasionally with your projects progress
Post Reply
User avatar
sickle
Verified
C Programming Expert
C Programming Expert
Posts: 257
Joined: Jul 17, 2013
I am a: Chocolate-fueled pug fetish robot.
Location: Scotland

ASM Demo: Magical Assmbler Spooky Ectoplasmic Gloop Gasm

Post by sickle » April 18th, 2015, 10:46 am

50%
Ahoyhoy

I haven't done much PSX-related recently, and got the craving for a little assembly.
I kinda wanted to finish off ROMProd's upload/download feature, but don't have a working parallel port, so I've been doing this for a few days. Bliss =)
Not sure I'll get around to finishing it, but it would be nice to get it somewhere close.
I ended up using Hitmen's Greentro as a base, 'cause let's face it; 15+ years later, those libraries still get the job done. It's admirable how complete those 'libraries' actually are :D

The code is littered with (slightly bloated) X86 style push/pop macros, and hundreds of extraneous nops that aren't required for delay slots, but it runs quite nicely. I guess the difference between full speed an noticable lag is the difference between applying the sine wave to all of the 8x8 characters (1200 of them) or just applying it to the visible ones. Honestly, I thought a quad in the background, the little ghost, 320 lines and 1200 alpha tested characters with loads of separate draw calls would be waaay laggier though. :mrgreen:

Either way, coming from an x86 background, having like 30 registers on the PSX is pretty amazing.
(Even if the code is a horrendous mess :D)

Oh yeah, can the GPU do semitransparent lines? I'm alternating the depth value of every 2nd line right now for rough'n'ready transparency. :lol:


Stuff I'd like to do with it:
-Some kinda logo that isn't Taylor Swift. Or maybe actually.
-A more readable font.
-Tidy up that .mod file a little for use on the PSX
-Find the time to add some more interesting effects.
-Burn it to disc and cry trying to debug whatever bug is almost guaranteed to arise.
-Use registers more consistently? Mebbe not use a0 for stack macros >.<?
-Document it.

Enjoy =)
Last edited by sickle on April 19th, 2015, 5:15 am, edited 1 time in total.

User avatar
Shadow
Verified
Admin / PSXDEV
Admin / PSXDEV
Posts: 2670
Joined: Dec 31, 2012
PlayStation Model: H2000/5502
Discord: Shadow^PSXDEV

Post by Shadow » April 18th, 2015, 4:20 pm

Very cool. Nice work :)
Development Console: SCPH-5502 with 8MB RAM, MM3 Modchip, PAL 60 Colour Modification (for NTSC), PSIO Switch Board, DB-9 breakout headers for both RGB and Serial output and an Xplorer with CAETLA 0.34.

PlayStation Development PC: Windows 98 SE, Pentium 3 at 400MHz, 128MB SDRAM, DTL-H2000, DTL-H2010, DTL-H201A, DTL-S2020 (with 4GB SCSI-2 HDD), 21" Sony G420, CD-R burner, 3.25" and 5.25" Floppy Diskette Drives, ZIP 100 Diskette Drive and an IBM Model M keyboard.

User avatar
sickle
Verified
C Programming Expert
C Programming Expert
Posts: 257
Joined: Jul 17, 2013
I am a: Chocolate-fueled pug fetish robot.
Location: Scotland

Post by sickle » April 24th, 2015, 3:18 am

heh, cheers old bean :p

User avatar
Shadow
Verified
Admin / PSXDEV
Admin / PSXDEV
Posts: 2670
Joined: Dec 31, 2012
PlayStation Model: H2000/5502
Discord: Shadow^PSXDEV

Post by Shadow » April 24th, 2015, 6:09 am

sicklebrick wrote:heh, cheers old bean :p
Old bean? I'm in my early twenties mate :P
By the way, if you need some more assembler demos, let me know and I'll upload them for you :)
Development Console: SCPH-5502 with 8MB RAM, MM3 Modchip, PAL 60 Colour Modification (for NTSC), PSIO Switch Board, DB-9 breakout headers for both RGB and Serial output and an Xplorer with CAETLA 0.34.

PlayStation Development PC: Windows 98 SE, Pentium 3 at 400MHz, 128MB SDRAM, DTL-H2000, DTL-H2010, DTL-H201A, DTL-S2020 (with 4GB SCSI-2 HDD), 21" Sony G420, CD-R burner, 3.25" and 5.25" Floppy Diskette Drives, ZIP 100 Diskette Drive and an IBM Model M keyboard.

User avatar
sickle
Verified
C Programming Expert
C Programming Expert
Posts: 257
Joined: Jul 17, 2013
I am a: Chocolate-fueled pug fetish robot.
Location: Scotland

Post by sickle » April 24th, 2015, 10:56 pm

Lol, just a turn of phrase; figured it would translate to Aussie English :p

Image


But yeah, if it's no hassle, it'd be pretty awesome to see any others you've found ^^

User avatar
Shadow
Verified
Admin / PSXDEV
Admin / PSXDEV
Posts: 2670
Joined: Dec 31, 2012
PlayStation Model: H2000/5502
Discord: Shadow^PSXDEV

Post by Shadow » April 25th, 2015, 2:56 am

No problem. Here you go.
asm.zip
You do not have the required permissions to view the files attached to this post.
Development Console: SCPH-5502 with 8MB RAM, MM3 Modchip, PAL 60 Colour Modification (for NTSC), PSIO Switch Board, DB-9 breakout headers for both RGB and Serial output and an Xplorer with CAETLA 0.34.

PlayStation Development PC: Windows 98 SE, Pentium 3 at 400MHz, 128MB SDRAM, DTL-H2000, DTL-H2010, DTL-H201A, DTL-S2020 (with 4GB SCSI-2 HDD), 21" Sony G420, CD-R burner, 3.25" and 5.25" Floppy Diskette Drives, ZIP 100 Diskette Drive and an IBM Model M keyboard.

User avatar
sickle
Verified
C Programming Expert
C Programming Expert
Posts: 257
Joined: Jul 17, 2013
I am a: Chocolate-fueled pug fetish robot.
Location: Scotland

Post by sickle » April 25th, 2015, 3:45 am

Ty muchly - some really interesting stuff in there :D

Post Reply

Who is online

Users browsing this forum: No registered users and 11 guests