h5n1xp / Omega

Bare metal Amiga Emulator
Mozilla Public License 2.0
67 stars 7 forks source link

Current build permanently resets #29

Open dirkwhoffmann opened 5 years ago

dirkwhoffmann commented 5 years ago

I've downloaded the current build, but I don't get Omega to boot any more.

The emulator resets itself periodically (which I can see in the console log):

Machine reset...
PC:fc05fc6
SP:dbfffa6
Machine reset...
PC:fc05fc6
SP:dbfffa6
....
h5n1xp commented 5 years ago

Damn! I feared this would happen. I’ve been working on a new display generation algorithm, I must have left something in 😞

Let me know your Rom version and boot disk πŸ‘πŸ»

dirkwhoffmann commented 5 years ago

I tried with:

./omega ~/Dropbox/Amiga/Roms/kick12.rom  ~~/Dropbox/Amiga/Workbench/A2000\ WB\ 1.2\ D.adf 

and

./omega ~/Dropbox/Amiga/Roms/kick12.rom  ~/Dropbox/Amiga/Games/Marble\ Madness.adf
h5n1xp commented 5 years ago

Ok, I think KS1.2 doesn’t like the slowram I have implemented, are you able to try with KS1.3 or KS2?

dirkwhoffmann commented 5 years ago

Yes, it's a KS 1.2 issue. With KS 1.3 ...

Screenshot 2019-03-30 at 12 36 20

Let's double click this thing 🀀

Screenshot 2019-03-30 at 12 35 01

Looking good 😎

Screenshot 2019-03-30 at 12 35 07

Ouuups 😲

dirkwhoffmann commented 5 years ago

Defender of the Crown causes a bus error 😬:

omega ~/Dropbox/Amiga/Roms/kick13.rom  ~/Dropbox/Amiga/Games/Defender\ of\ the\ Crown_Disk1.adf 

After hitting F1:

0000 - DF0 Click
0000 - DF0 Click
0000 - DF0 Click
Bus error: 10

Here is the crash log:

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   omega                           0x00000001029642c9 sprite2chunky + 201
1   omega                           0x0000000102960e23 dma_execute + 1027
2   omega                           0x00000001029b6860 main + 1808
3   libdyld.dylib                   0x00007fff7de1c3d5 start + 1

Hmmm, but not always. This time, it worked (maybe an uninitialised variable somewhere):

Let's do something useful this weekend, e.g., winning a trophy:

Screenshot 2019-03-30 at 13 12 12 Screenshot 2019-03-30 at 13 12 33

Yeah, I'm ready 😎.

Screenshot 2019-03-30 at 13 12 37

Uh, wait a moment, this is damned fast ☹️. And my opponent is too much on the left.

Screenshot 2019-03-30 at 13 12 46

This is totally unfair. I would have beaten him for sure if the emulator didn't run so fast πŸ˜–.

OK, to be honest, I can't remember that I ever won the tournament on my A500 πŸ™„.

mithrendal commented 5 years ago

Haha. How about raiding castles 🏰 and rescuing princesses? Is that also going much faster now? As far as I remember the princesses were drawn very beautiful.

dirkwhoffmann commented 5 years ago

As far as I remember the princesses were drawn very beautiful.

Now you know why I'm working so hard on the 4x XBR upscaler in vAmiga 😎.

mithrendal commented 5 years ago

Yep. Truly further blurring the line between fiction and reality. I bet this is the most technical sophisticated form of escapism. En effect only being topped by grand literature like JRR Tolkiens Lord of the Rings.

h5n1xp commented 5 years ago

Great stuff! Don’t forget, F5 will switch off the On-Screen indicators and it will also capture the mouse. If you make the window full screen it makes for a very enjoyable experience.

h5n1xp commented 5 years ago
Screenshot 2019-03-30 at 12 35 07

Ouuups 😲

This is because my bitplane fetch assumes the bitmap is either 320 or 640 pixels wide. As soon as some game programmer makes the bitmap slightly narrower (to free up Chipram cycles) or slightly wider to fill the overscan area, then we get these β€œsmeared” graphics.

I have an open issue about the beam position, I have tried to write better versions, but they never work as well as what I currently have. I will get it working eventually 😊