Altirra Atari Emulator

Post Reply
matibee
Posts: 19
Joined: Mon Feb 17, 2020 6:09 pm

Altirra Atari Emulator

Post by matibee » Sun Feb 23, 2020 3:00 pm

Hi all,
I'm trying to use this alternative emulator but I'm having trouble loading the cartridge rom ("\BldA52\Program.rom"). Altirra is asking me to choose a 'cartridge mapper'. It limits the options to just 5 possibilities at first (none have those have worked) but there's dozens if you select the "Show all cartridge types...." check box. I've been through a lot of them with no luck so far.

My command prompt so far looks like this;
Altirra64 /baseline /pal /hardware:800xl /memsize:64k /cart "S:\BldA52\Program.rom" /debug

(adding the cartridge mapping as a command line option would be easy if I knew which one ;)

So, why Altirra? I saw it recommended on an Atari forum (sadly in a thread where I was googling why Atari800Win crashes so much) and it has some great looking debug features; memory watch windows, toggle-able break-points (even 'break on change' in the memory watch windows I think). I'm also hoping 'Listing.txt' will serve as a source file for the built-in debugger.

Q1. Can anyone help get Altirra to run 'Program.rom'?
Q2. Could we get Altirra to play nice if we did away with a cartridge style rom? (It's not important right now but I would like to compile as a disk-loadable binary one day. But by the time that day comes I'll remember how to autoboot an executable and what the executable header should look like :mrgreen:

I'm going to keep trying. If I find anything I'll report back.

Cheers, and keep ASM'ing :-)
Hobbyist coder for over 37 years! Last 20 years: C/C++, Windows, DirectX, OpenGL, Newton, JUCE, Godot.
Current collection: Atari; 2600, 800xl, 130xe, XEGS, 520stfm, 1040stfm, Lynx. SNES. Megadrive. GBA. PSP. 48k Speccy. C64, Amiga 500+. PS1, 2 & 3

User avatar
akuyou
Posts: 563
Joined: Mon Apr 22, 2019 3:19 am
Contact:

Re: Altirra Atari Emulator

Post by akuyou » Mon Feb 24, 2020 9:59 am

Actually, I was able to compile "A52_Bitmap.asm" just fine using your command line... when it asked me a cartridge type I sekected option 1 (8k)
Of course the build mode was "VASM A80"
t.jpg
t.jpg (32 KiB) Viewed 19736 times
If you're having problems, it could be some other compatibility flaw in my code - like colors making the screen whole black or something

This command line makes it not ask for the cart type, and still seems to work:

Altirra64 /baseline /pal /hardware:800xl /memsize:64k /cart "\BldA52\Program.rom" /debug /cartmapper 1
Chibi Akuma(s) Comedy-Horror 8-bit Bullet Hell shooter! // 「チビ悪魔」可笑しいゴシックSTG ! // Work in Progress: ChibiAliens

Interested in CPU's :Z80,6502,68000,6809,ARM,8086,RISC-V
Learning: 65816,ARM,8086,6809

User avatar
akuyou
Posts: 563
Joined: Mon Apr 22, 2019 3:19 am
Contact:

Re: Altirra Atari Emulator

Post by akuyou » Mon Feb 24, 2020 10:26 am

OK, I got it... there's a bug in my code - soz! - I should have changed the 'program start' for the atari 800 - it seemed to work ok on the emulator I'd been using, but it's a no go on this one.

add "ProgramStart:" to the start of the code in 'V1_Header.asm" (before SEI)

Change V1_Footer.asm... the Rom header should be:

Code: Select all

        org $bffd
        db $FF         ;Don't display Atari logo
        dw ProgramStart   
Files attached!
Attachments
SrcA52.7z
(1.15 KiB) Downloaded 1718 times
Chibi Akuma(s) Comedy-Horror 8-bit Bullet Hell shooter! // 「チビ悪魔」可笑しいゴシックSTG ! // Work in Progress: ChibiAliens

Interested in CPU's :Z80,6502,68000,6809,ARM,8086,RISC-V
Learning: 65816,ARM,8086,6809

matibee
Posts: 19
Joined: Mon Feb 17, 2020 6:09 pm

Re: Altirra Atari Emulator

Post by matibee » Tue Feb 25, 2020 1:32 pm

That's great Keith, thank you for looking into this. I can indeed use the listing.txt to step through the code so this is going to be a great dev platform.
Hobbyist coder for over 37 years! Last 20 years: C/C++, Windows, DirectX, OpenGL, Newton, JUCE, Godot.
Current collection: Atari; 2600, 800xl, 130xe, XEGS, 520stfm, 1040stfm, Lynx. SNES. Megadrive. GBA. PSP. 48k Speccy. C64, Amiga 500+. PS1, 2 & 3

matibee
Posts: 19
Joined: Mon Feb 17, 2020 6:09 pm

Re: Altirra Atari Emulator

Post by matibee » Fri Feb 28, 2020 4:30 pm

Thanks once again for fixing this. I'm having a great time in Altirra and it's debug features are an absolute joy to work with.

I hope to have some code to show off soon :mrgreen:
Hobbyist coder for over 37 years! Last 20 years: C/C++, Windows, DirectX, OpenGL, Newton, JUCE, Godot.
Current collection: Atari; 2600, 800xl, 130xe, XEGS, 520stfm, 1040stfm, Lynx. SNES. Megadrive. GBA. PSP. 48k Speccy. C64, Amiga 500+. PS1, 2 & 3

User avatar
akuyou
Posts: 563
Joined: Mon Apr 22, 2019 3:19 am
Contact:

Re: Altirra Atari Emulator

Post by akuyou » Sun Mar 01, 2020 8:51 am

Don't forget about the competition - if you show off your work on 'show and tell' within the next two weeks, you could win a small prize (Mini arcade cabinet toy)

https://www.chibiakumas.com/forum/viewt ... ?f=8&t=282
Chibi Akuma(s) Comedy-Horror 8-bit Bullet Hell shooter! // 「チビ悪魔」可笑しいゴシックSTG ! // Work in Progress: ChibiAliens

Interested in CPU's :Z80,6502,68000,6809,ARM,8086,RISC-V
Learning: 65816,ARM,8086,6809

Post Reply

Return to “Atari 800 and 5200 Assembly Programming”