Emulator

A forum where you can announce your awesome project(s).

Moderator: MaxCoderz Staff

Spencer
Extreme Poster
Posts: 346
Joined: Mon 17 Jan, 2005 8:56 am
Location: Indiana

Post by Spencer »

Thank you all for the helpful feedback. Using your suggestions we were able to correct to the two more pressing matters:
  • Debugger should now open for all users
  • TI-OS will no longer lock up while defragmenting
We added the additional features:
  • Extra hotkeys (backspace to toggle screenshot)
  • Ctrl-C to copy the current ANS to the clipboard (not on 73, 82, or 83 however)
  • A lovely 48x48 icon
Download Beta 2: http://www.revsoft.org/wabbitemu.zip
CoBB
MCF Legend
Posts: 1601
Joined: Mon 20 Dec, 2004 8:45 am
Location: Budapest, Absurdistan
Contact:

Post by CoBB »

Will you also tightly integrate the emulator and the assembler? It looks like a logical step to me. For instance, having to deal with separate label and breakpoint files is absolutely redundant, when you could just throw the source code at the emulator and have it running instantly, with all the data structures created during compilation immediately available to the debugger.
User avatar
Dwedit
Maxcoderz Staff
Posts: 579
Joined: Wed 15 Dec, 2004 6:06 am
Location: Chicago!
Contact:

Post by Dwedit »

I can't get my emulator to boot. Could you give me a full z80 trace [PC, instruction executed, register contents, etc] of booting up a TI83 version 1.07 up until the Mem Cleared message appears on the screen?
You know your hexadecimal output routine is broken when it displays the character 'G'.
User avatar
Jim e
Calc King
Posts: 2457
Joined: Sun 26 Dec, 2004 5:27 am
Location: SXIOPO = Infinite lives for both players
Contact:

Post by Jim e »

CoBB wrote:Will you also tightly integrate the emulator and the assembler? It looks like a logical step to me. For instance, having to deal with separate label and breakpoint files is absolutely redundant, when you could just throw the source code at the emulator and have it running instantly, with all the data structures created during compilation immediately available to the debugger.
That's definitely the plan in the long run, but for now it's kinda that feeling this will do for now. But even the the assembler needs some work. I wanted to parse lst files straight out, but it seems that there were minor bugs in it. So now I'm getting more familiar with it.
Dwedit wrote:I can't get my emulator to boot. Could you give me a full z80 trace [PC, instruction executed, register contents, etc] of booting up a TI83 version 1.07 up until the Mem Cleared message appears on the screen?
That would hit the megabytes really freakin fast. Three issues I had with 83 and 82 were the memory paging, the link(that prevented boot for me), and the LCD(contrast was insanely low, I didn't realize the 82 was working properly until hours after debuggin).

Since it's probably hardware, here's the Port reads and write untill it boots up. Also I had it print the memory pages for each bank when ever the possibility of a swap came up.
http://jim.revsoft.org/a.7z
Image
User avatar
Dwedit
Maxcoderz Staff
Posts: 579
Joined: Wed 15 Dec, 2004 6:06 am
Location: Chicago!
Contact:

Post by Dwedit »

Please fix up that output a little. The arrows are backwards, and the 'data read from the port' is always equal to the port number.

Edit: I can see that my emulator dies at "2ECE: ret", the value popped off the stack is zero, causing a reset. Now how would that happen?

Edit: GAH... stupid GNU assembler not giving an error when it generates incorrect arm code!
You know your hexadecimal output routine is broken when it displays the character 'G'.
User avatar
Dwedit
Maxcoderz Staff
Posts: 579
Joined: Wed 15 Dec, 2004 6:06 am
Location: Chicago!
Contact:

Post by Dwedit »

How do I build this?
You know your hexadecimal output routine is broken when it displays the character 'G'.
Spencer
Extreme Poster
Posts: 346
Joined: Mon 17 Jan, 2005 8:56 am
Location: Indiana

Post by Spencer »

Our makefile is autogenerated since we add so many files so often. It will become easier to deal with in later releases.

You need gcc and winres. Compile all with -DWINVER=0x501 and -D_WIN32_IE=0x0500 and gui, core, debugger, hardware, and utilities directories included. Link with
  • user32
  • ole32
  • Uuid
  • gdi32
  • Msimg32
  • comdlg32
  • winmm
  • comctl32
Use zlib from http://www.zlib.net/ from compressed save states.
Last edited by Spencer on Wed 13 Jun, 2007 2:34 am, edited 1 time in total.
User avatar
Dwedit
Maxcoderz Staff
Posts: 579
Joined: Wed 15 Dec, 2004 6:06 am
Location: Chicago!
Contact:

Post by Dwedit »

Well, I don't have a development environment capable of building the program, so may I request a special version which can trace the entire boot process, displaying register contents after each instruction is executed? That way I can find the precise moments where the emulation diverges.
You know your hexadecimal output routine is broken when it displays the character 'G'.
User avatar
Dwedit
Maxcoderz Staff
Posts: 579
Joined: Wed 15 Dec, 2004 6:06 am
Location: Chicago!
Contact:

Post by Dwedit »

Looks like I probably won't be needing that help anymore :)
You know your hexadecimal output routine is broken when it displays the character 'G'.
User avatar
Jim e
Calc King
Posts: 2457
Joined: Sun 26 Dec, 2004 5:27 am
Location: SXIOPO = Infinite lives for both players
Contact:

Post by Jim e »

Just to let everyone know there is a mac beta now. So for those of you waving the apple flag, please beta test.

Link


Image
Image
User avatar
CDI
Maxcoderz Staff
Posts: 321
Joined: Tue 24 May, 2005 7:25 pm
Location: If I find out, you'll be first to know.
Contact:

Post by CDI »

looks sexy, will test when I get home, not that I am into dev for calc anymore, but still
ImageImage
User avatar
JoostinOnline
Regular Member
Posts: 133
Joined: Wed 11 Jul, 2007 10:42 pm
Location: Behind You

Post by JoostinOnline »

Wow...I can't believe you just called a calc emulator sexy :D!
"Macs are the Perfect Computers", said the Perfect Idiot.
Image
Testing for:
Vera
User avatar
Jim e
Calc King
Posts: 2457
Joined: Sun 26 Dec, 2004 5:27 am
Location: SXIOPO = Infinite lives for both players
Contact:

Post by Jim e »

Will's latest Mac build is looking REALLY good.

Image
Image
Image
Image
User avatar
benryves
Maxcoderz Staff
Posts: 3087
Joined: Thu 16 Dec, 2004 10:06 pm
Location: Croydon, England
Contact:

Post by benryves »

Do you have any hints/tips for how much of the hardware needs to be emulated before it even vaguely works, or how you built the emulator? :)

I wrote an SMS emulator so tried to hack it into a TI emulator; if I run a program directly it works (screenshots), but I haven't got anywhere as far as getting the OS to boot goes. Constructing an SMS emulator is rather easier as each game is effectively its own OS, which makes the progression from simple ROMs to more complex ROMs nice and gentle.
CoBB
MCF Legend
Posts: 1601
Joined: Mon 20 Dec, 2004 8:45 am
Location: Budapest, Absurdistan
Contact:

Post by CoBB »

benryves wrote:Do you have any hints/tips for how much of the hardware needs to be emulated before it even vaguely works, or how you built the emulator? :)
Well, the 83+ can obviously boot without any kind of flash functionality implemented. ;) It can also live without the link assist (which isn’t used by the BE anyway). You definitely need the keyboard, the LCD, the interrupts, the paging mechanism and port 2 reporting a plain plus. The flash can behave as plain ROM and ignore all writes. That should be sufficient to get it running.
Post Reply