|
Post by elmer on Dec 1, 2019 6:12:44 GMT
I do *NOT* want to check in the menu code for TEOS yet, because it is still in a state of flux and clean-up, but this section of the TEOS startup sequence is useful to see for anyone that wants to experiment with the assembly-language library code ...
msg_wait_init: db "%>%p5" db $0C db " INITIALIZING...%<%p0" db $0A,$0A,$0A,0
tos_menu_init: ldy #4 ; Decompress the 1st font file. jsr tos_decompress jsr upload_font8x8
ldy #8 ; Decompress the 2nd font file. jsr tos_decompress jsr upload_font8x16
PUTS msg_wait_init
jsr tos_init_crc16 ; Create CRC16 lookup table. jsr tos_init_crc32 ; Create CRC32 lookup table.
php
TED_CFG_FPGA
; Save Tennokoe Bank SRAM?
jsr f32_mount_vol ; Init SDcard and mount drive. cpx #$00 beq .stage1_ok
PUTS fat32_nomount .hang: jmp .hang
.stage1_ok: PUTS fat32_mounted
; Save Tennokoe Bank SRAM?
lda tos_tennokoe ; Did we just run Tennokoe Bank? beq .skip_tbank stz tos_tennokoe jsr tos_save_tbank ; Save the Tennokoe Bank SRAM. .skip_tbank: nop
|
|
|
Post by dshadoff on Dec 1, 2019 22:04:16 GMT
Cool stuff !! This will take time to digest...
|
|
|
Post by elmer on Dec 2, 2019 7:09:46 GMT
This will take time to digest... Hahaha, it took some time to write, too! Feel free to start another thread to ask questions, there are probably a bunch of design-choices in there that aren't obvious when you look at the code. I'm lousy at writing documentation ... I'd much prefer to answer questions and provide usage examples instead.
|
|
|
Post by elmer on Dec 3, 2019 7:18:32 GMT
For the brave-of-heart, here's a public beta of TEOS. Just extract the archive, and copy the files to the root of your Turbo EverDrive's SD card. In particular ... the contents of the /TBED/ directory *must* go in that directory. If you have already got some of those files in your /TBED/ directory, then you must have been running an earlier beta version ... please do NOT overwrite those files, or you will lose your BRAM saves. While you *can* theoretically rename teos.pce to OS.PCE and put it in your /TBED/ directory, and it should work, I do NOT recommend doing that at this point. This is a beta test version of TEOS, and it is far safer to just run it like a normal cart from Krikzz's OS ... you have been warned!Please report any problems here in this forum/thread, and not on Krikzz's forum. TEOS Beta4
|
|
|
Post by dshadoff on Dec 3, 2019 13:30:32 GMT
Nice work ! I’ll be checking this out when I get home from work tonight.
|
|
|
Post by dshadoff on Dec 3, 2019 16:44:45 GMT
Hmm, odd timing, but krikzz just released a new version of his OS. Only thing he mentions is reconfigurability of buttons. I wonder what his reaction will be when he sees this new OS ?
|
|
|
Post by elmer on Dec 3, 2019 20:18:31 GMT
Hmm, odd timing, but krikzz just released a new version of his OS. Only thing he mentions is reconfigurability of buttons. Hahaha ... definitely odd timing! I've tried KRIKzz's new OS version, and I'm *really* happy that he didn't move the location of the serial number & assembly date info in the new code, and so TEOS is still able to read them from his OS when you launch TEOS as a HuCard. As far as I can tell, the button swapping is the only new feature in the OS. Populous still has graphical glitches when I run it, and the Tennokoe Bank software still fails when it tries to write to the card's backup RAM. I wonder what his reaction will be when he sees this new OS ? I guess we'll soon see! One thing ... I suppose that now I'll have to bump TEOS's version number from '2' to '3'.
|
|
|
Post by dshadoff on Dec 4, 2019 2:15:16 GMT
This is really nice ! I've done some light testing and have the following feedback:
First impressions: - I like the font, the navigation system, and the Tennokoe SD function seems to transfer memory to SDCard just fine for BRAM (and back to BRAM on a Duo). Very nice !
Bugs: - On the Tennokoe SD functionality screen, there is a bug displaying size of empty BRAM slots, when the SDCard slot is empty. Details: For example, if Slot #01 has contents, the size is displayed properly... then, when I use <- -> keys to move to other BRAM slots... when I come to an unformatted/empty slot (i.e. 2048 bytes of 0xff as you have supplied), the size comes up as "Free: 17628", which is wrong/too long/has one too many digits. The '8' remains on the screen thereafter, and is especially apparent if you "Select" to the "file delete" function, where it stands alone in the empty area.
Questions: 1) You have supplied several MB128 file 'slots', but is there supposed to be MB128 backup functionality in this version ? I have not been able to get this functionality to appear with: - unformatted Save-kun - formatted Save-kun with contents - formatted MB128 with contents
2) Same goes for Tennokoe file, what is this for/how is it used ?
Suggestions: - The first time I looked at the Tennokoe SD screen, the slot # information didn't jump out at me. It might be helpful to make the "Console" and "Slot 01" text double-height (you can keep them where they are; they have blank space below which will accommodate).
EDIT:
I see how the Tennokoe Bank card works now. I didn't bother having an image for it until today, and now I see what you are doing to load/save the SRAM. Pretty smart ! But I still don't see anything MB128-related...
|
|
|
Post by elmer on Dec 4, 2019 6:55:52 GMT
Bugs: - On the Tennokoe SD functionality screen, there is a bug displaying size of empty BRAM slots, when the SDCard slot is empty. Details: For example, if Slot #01 has contents, the size is displayed properly... then, when I use <- -> keys to move to other BRAM slots... when I come to an unformatted/empty slot (i.e. 2048 bytes of 0xff as you have supplied), the size comes up as "Free: 17628", which is wrong/too long/has one too many digits. The '8' remains on the screen thereafter, and is especially apparent if you "Select" to the "file delete" function, where it stands alone in the empty area. Thanks for the bug report, that was a really silly error for me to leave in there. I think that it's something that I broke during a cleanup pass. Anyway, it's fixed now, and I've also taken your advice and used the double-height font for the Tennokoe SD box titles, which really makes them pop out visually ... good call! I've updated the link a few posts above with a new beta 4 version. I'm glad that you figured out how the Tennokoe Bank card works, it's not a perfect system, but I couldn't think of any other way to make it functional. As for the MB128 ... nope, the basic code is in there, but I still need to work on the UI side of things, so the functionality isn't accessible in the current beta. Perhaps soon!
|
|
|
Post by dshadoff on Dec 4, 2019 13:18:35 GMT
Looks much better now ! I’ll try additional peripheral combinations when I get home (tennokoe 2, mouse, other CDROM units, and anything else I can find).
If the MB128 stuff arrives any time soon, be sure to let me know so I can test.
|
|
|
Post by dshadoff on Dec 5, 2019 1:23:49 GMT
OK, seems to work fine on Tennokoe 2. ..But was it *supposed* to work with a mouse ? It recognized all the buttons, but I couldn't move the selector with movement of the mouse. Then again, I'm not sure whether this was a goal.
|
|
|
Post by elmer on Dec 5, 2019 8:27:14 GMT
But was it *supposed* to work with a mouse ? It recognized all the buttons, but I couldn't move the selector with movement of the mouse. Then again, I'm not sure whether this was a goal. Nope, sorry, not yet. The short-term goal was to make sure that having a mouse attached wouldn't cause any problems ... mostly it was just a fun sidetrack to figure out how to detect and read all of the different devices at the same time. I may enable full mouse functionality at some point, but I think that there are many other higher priorities, such as the MB128 support.
|
|
sarge
Punkic Cyborg
Posts: 104
Fave PCE Shooter: Soldier Blade
Fave PCE Game Overall: Dracula X: Rondo of Blood
Fave PCE RPG: Dungeon Explorer II
|
Post by sarge on Dec 10, 2019 17:16:24 GMT
Hey, just wanted to thank you, elmer, for TEOS. I've been using it a bit, and it seems like a huge step up from the normal OS! That backup function, in particular, was something I'd been hoping to see for quite a while. Appreciate your hard work!
|
|
|
Post by theshadowrunner on Dec 16, 2019 23:20:32 GMT
Elmer,for the main rom list menu, could you possibly make an option to make the font bigger? On GT it's hardly decipherable because of the (OG) screen. Thanks for considering.
|
|
|
Post by elmer on Dec 18, 2019 5:51:02 GMT
Elmer,for the main rom list menu, could you possibly make an option to make the font bigger? On GT it's hardly decipherable because of the (OG) screen. Thanks for considering. I can understand the problem, and I'm sympathetic ... but the GT is such a small %age of the number of machines out there, and I *really* don't want to spend the hours/days putting in an option that will only be used by one person. Since you're using a GT, you don't have backup RAM so you can't use TEOS's BRAM-to-SD capabilities, and you're unlikely to ever need the work-in-progress MB128-to-SD capability ... so why are you interested in TEOS vs Krikzz's original OS? That's not a dig, that's a real question ... what is wrong (for you) in Krikzz's OS that you makes you interested in TEOS? From my POV, "yes", I can do a 320-wide version of the HuCard select, but I *really* don't want to mess around with option selections and files. Dave, Tom, Chris : Is there any way to detect in code that you're running on a handheld GT instead of a console-plus-TV? IIRC the GT has some kind of link-cable support ... is that something that can be detected?
|
|