Localization Legend "Supper the Subtitler" has "joined the club" in being targeted for CD-pressings by bootleg master Tobias/PCEWorks! His projects like Private Eyedol, Galaxy Fräulein Yuna 1 & 2, etc. are now being sold on Chinese factory-pressed CDROMs...
IMG
Main Menu

First HuC attempt - simple BRAM file browser

Started by megatron-uk, 01/02/2014, 09:42 AM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

megatron-uk

So, after a couple of days I've got my first working programme that actually does something, rather than just print 'hello world'.

It's a simple BRAM browser that lists the available files in memory and allows you to scroll through a list (list is currently truncated at 7 files, any more and you can scroll up and down to see the others). When highlighting a file it will attempt to load the contents of the backup file and display on-screen in hexadecimal. If the contents of the backup file is larger than the display area, it will truncate it and tell you.

It's written in plain HuC.

Where to go from here? Well, I think simple copy/delete functions like Chris Covell's BRAMTool would be useful - but ultimately I'd like to see how feasible it will be to get the Everdrive edio.c functions working. Though I suspect that may involve some assembly at some point - last time I did any (m68k) was at University some 14-15 years ago.

TurboXray

Quote from: megatron-uk on 01/02/2014, 09:42 AMSo, after a couple of days I've got my first working programme that actually does something, rather than just print 'hello world'.

It's a simple BRAM browser that lists the available files in memory and allows you to scroll through a list (list is currently truncated at 7 files, any more and you can scroll up and down to see the others). When highlighting a file it will attempt to load the contents of the backup file and display on-screen in hexadecimal. If the contents of the backup file is larger than the display area, it will truncate it and tell you.

It's written in plain HuC.

Where to go from here? Well, I think simple copy/delete functions like Chris Covell's BRAMTool would be useful - but ultimately I'd like to see how feasible it will be to get the Everdrive edio.c functions working. Though I suspect that may involve some assembly at some point - last time I did any (m68k) was at University some 14-15 years ago.
I believe there's a bug in the BRAM library code for HuC (it's actually in the Mkit asm library side, but then again all library is). I don't specifically remember what the bug was.

OldRover

Turbo Badass Rank: Janne (6 of 12 clears)
Conquered so far: Sinistron, Violent Soldier, Tatsujin, Super Raiden, Shape Shifter, Rayxanber II

TurboXray

Did anyone upload/make public library fix for this?