25 February 2019, 17:04 | #221 |
Total Chaos forever!
Join Date: Aug 2007
Location: Waterville, MN, USA
Age: 49
Posts: 2,187
|
No, I meant I could do it unless someone has Visual Studio, I could do it in MSYS2 GCC.
|
25 February 2019, 17:09 | #222 |
Registered User
Join Date: Jan 2017
Location: London, UK
Posts: 433
|
|
25 February 2019, 21:13 | #223 |
Total Chaos forever!
Join Date: Aug 2007
Location: Waterville, MN, USA
Age: 49
Posts: 2,187
|
I'm having a little trouble finding the includes for SDL2 although I have the package installed under MSYS2. I haven't found the Developer install of it so it can't find the SDL2/SDL.h file.
EDIT: Found the header in /mingw64/include and libs in /mingw64/lib Now GCC is complaining about stray unicode characters in DMA.c I'll see if I can put spaces between the comment marker and the character. Last edited by Samurai_Crow; 25 February 2019 at 21:36. |
25 February 2019, 21:17 | #224 | |
Registered User
Join Date: Jan 2017
Location: London, UK
Posts: 433
|
Quote:
I think you also need to rename main() to SDLMain()... or something... it’s all very strange. |
|
25 February 2019, 21:37 | #225 |
Total Chaos forever!
Join Date: Aug 2007
Location: Waterville, MN, USA
Age: 49
Posts: 2,187
|
Actually MSYS is a Unix compatibility layer for Windows with the Arch Linux package manager.
See my edited post. EDIT2 The deal with SDL_main is that it needs to add startup and shutdown to the main function so SDL2/SDL.h includes a main() macro that feeds the parameters into SDL_main call and then links in the custom startup and shutdown code. The SDL_main function you supply will be the same for all platforms but will link to different code on all platforms. EDIT3 It appears all the invisible characters embedded in DMA.c are throwing off GCC. Clang generates a bunch of errors too. Last edited by Samurai_Crow; 25 February 2019 at 22:09. |
25 February 2019, 22:11 | #226 | |
Registered User
Join Date: Jan 2017
Location: London, UK
Posts: 433
|
Quote:
|
|
25 February 2019, 22:15 | #227 | |
Total Chaos forever!
Join Date: Aug 2007
Location: Waterville, MN, USA
Age: 49
Posts: 2,187
|
Quote:
It looks like the latest stable open-source build of Clang likes #include <stdint.h> and won't compile without it. GCC doesn't care but still won't link yet. Last edited by Samurai_Crow; 25 February 2019 at 22:27. |
|
25 February 2019, 22:27 | #228 |
Registered User
Join Date: Jul 2014
Location: Finland
Posts: 1,178
|
run sdl-config --libs to see what exact -l<lib> you have to add, note that this is case sensitive so -lSDL2 not -lsdl2 as in a previous example line.
Also depending on your compiler/environment you might have to #include <stdint.h> |
25 February 2019, 22:58 | #229 | |
Total Chaos forever!
Join Date: Aug 2007
Location: Waterville, MN, USA
Age: 49
Posts: 2,187
|
Quote:
I'm going to try to use CodeLite to generate a makefile. EDIT It looks like CodeLite is using native Windows paths and filenames so it is not a good port to MSYS2. EDIT2 I've submitted bug reports on the MSYS2 repo for the half-ports. In the meantime I've forked the Omega repo and committed my changes. When I get it working, I'll submit a pull request. Last edited by Samurai_Crow; 26 February 2019 at 06:31. |
|
26 February 2019, 09:31 | #230 | |
Registered User
Join Date: Jan 2017
Location: London, UK
Posts: 433
|
Quote:
Good work! I think it would be helpful for for me to remove the unix file handling stuff, currently in main, but will be move to Host.c and replaced with SDL file handling, as I formalise the interaction between Omega and floppy disk images. The current approach was a quick and dirty hack to get something loading. |
|
26 February 2019, 15:00 | #231 | |
Join Date: Jul 2008
Location: Sweden
Posts: 2,269
|
Quote:
I built the emulator with VC++ a couple of weeks ago (just to try it out, I didn't keep the files) and it'll be a bit of a chore. It's mostly the POSIX file-handling stuff and VC++'s poor C support you have to deal with. |
|
27 February 2019, 16:32 | #232 |
Registered User
Join Date: Jan 2017
Location: London, UK
Posts: 433
|
I have rewritten the floppy drive emulation, honestly no idea how the old code managed to work.
New code supports up to 4 drives, currently only two ADFs can be added via command line. Two disk should suffice for testing. Omega ./Kick13.rom ./disk1.adf ./disk2.adf Not a thrilling video, but progress. [ Show youtube player ] I'll be looking to getting Kickstart 3.0 booting at some point. Last edited by bloodline; 27 February 2019 at 17:31. |
28 February 2019, 12:37 | #233 | |
Out to Grass
Join Date: Jul 2010
Location: UK
Posts: 125
|
Quote:
Fantastic work getting it running this well ! Will you be working on Kickstart 3.0 before catching up with the RPi3 version project? I would love to see the pi running this baby Oh and nice work on the car in the link on your first post What a rush |
|
28 February 2019, 17:29 | #234 | |
Registered User
Join Date: Jan 2017
Location: London, UK
Posts: 433
|
Thank you! I'm still a bit surprised it works as well as it does!
Quote:
|
|
28 February 2019, 21:59 | #235 |
Total Chaos forever!
Join Date: Aug 2007
Location: Waterville, MN, USA
Age: 49
Posts: 2,187
|
I got it to build now. Pull request submitted. It appears to have a merge conflict with blitter.h though.
|
01 March 2019, 08:52 | #236 | |
Registered User
Join Date: Jan 2017
Location: London, UK
Posts: 433
|
Quote:
Jbl007’s success at building the current sources suggest your changes are a success, good job! Last edited by bloodline; 02 March 2019 at 14:20. |
|
01 March 2019, 09:52 | #237 |
Registered User
Join Date: Jan 2017
Location: London, UK
Posts: 433
|
Dirk Hoffmann and I have found a weird graphical glitch... My guess the Blitter is not calculating a stride properly... Does anyone here have a better idea (before I rip into my blitter code)?
Also how can I make my Agnus appear to be a Fatter Agnus? 2Meg of Chipram is reported to the system, but some software thinks my Agnus is 512K and ignores the extra memory. -edit- Ok I think I’ve figured it out, the upper bits of vposr seems to indicate Agnus revisions. Last edited by bloodline; 02 March 2019 at 01:23. |
01 March 2019, 12:59 | #238 |
Registered User
Join Date: Mar 2013
Location: Leipzig/Germany
Posts: 466
|
I managed to compile successfully, but it segfaults very early on.
gdb session: Code:
(gdb) break ADF2MFM Breakpoint 1 at 0x1fafb: file Floppy.c, line 51. (gdb) run Starting program: /tmp/Omega/omega kick13.rom wb.adf [Thread debugging using libthread_db enabled] Using host libthread_db library "/usr/lib/libthread_db.so.1". wb.adf Breakpoint 1, ADF2MFM (fd=-1, mfm=0x5555556926a4 <df+20> "") at Floppy.c:51 51 int size =(int) lseek(fd, 0, SEEK_END); (gdb) step 54 int sectors = size/512; (gdb) step 57 int tracks = (sectors / 22); (gdb) step 62 uint8_t adf[size]; (gdb) print fd $1 = -1 (gdb) print size $2 = -1 (gdb) print sectors $3 = 0 (gdb) print tracks $4 = 0 (gdb) step 67 lseek(fd, 0, SEEK_SET); (gdb) step Program received signal SIGSEGV, Segmentation fault. 0x0000555555573bae in ADF2MFM (fd=-1, mfm=0x5555556926a4 <df+20> "") at Floppy.c:67 67 lseek(fd, 0, SEEK_SET); (gdb) step Program terminated with signal SIGSEGV, Segmentation fault. The program no longer exists. Edit: I found the reason: My wb.adf was read only. I made it writable and now the first call to ADF2MFM succeeds but still segfaults afterwards. Is it trying to enable DF1 to DF3? I spotted the last "enable all 4 drives" commit... Last edited by jbl007; 01 March 2019 at 13:12. |
01 March 2019, 13:23 | #239 | |
Registered User
Join Date: Jan 2017
Location: London, UK
Posts: 433
|
Quote:
-edit- Thank you for trying this, I need others to do this, or we won't find the bugs. Last edited by bloodline; 01 March 2019 at 13:29. |
|
01 March 2019, 16:30 | #240 |
Registered User
Join Date: Mar 2013
Location: Leipzig/Germany
Posts: 466
|
Works now, and I must say it's quite impressive.
I loaded some programs from my old tools disk, many of them work very well f.e. DirOpus 1.5, Cygnus Ed. II, BootX, Powerpacker... XCopy Pro has wrong palette, no mouse pointer and host cpu is at 100% It seems that programs using overscan screen do are not displayed correctly. Is this a known problem? For example VTSchutz and Scene Generator. Screen is trashed and mouse pointer warps around (if moved to left it appears of the right) BTW: Did you already notice: the mouse busy pointer Zzzzz is missing it's lower part of the bubble |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Amiga emulator for iOS | steviebwoy | support.OtherUAE | 35 | 15 November 2014 10:14 |
Amiga emulator for a PSP? | Vars191 | support.OtherUAE | 1 | 09 May 2010 02:08 |
Frederic's Emulator inside and Emulator thread | Fred the Fop | Retrogaming General Discussion | 22 | 09 March 2006 07:31 |
ADF Files -> Amiga(amiga with dos Emulator) | Schattenmeister | support.Hardware | 8 | 14 October 2003 00:10 |
Which Amiga emulator is best? | Tim Janssen | Amiga scene | 45 | 15 February 2002 19:52 |
|
|