Videopac / Odyssey2 forum
May 07, 2021, 09:03:51 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Join Rafael's Haunted Woods contest and win a copy of the game!
 
   Home   arcade Help Login Register links videopac.nl  
Pages: [1]   Go Down
  Print  
Author Topic: Problems with AS Assembler  (Read 2424 times)
retroshaun
Trying to get the cartridge in...
*
Posts: 33


« on: January 14, 2016, 09:21:11 PM »

Hi guys,

My first foray into O2/VP coding isn't going well! I am simply trying to assemble hello.a48 using AS 1.41r8. I think I have it set up correctly, following the readme docs, but all I get is

assembling HELLO.A48
PASS 1←[K
> > >HELLO.A48(38) : error : error in opening file←[K
fatal error, assembly terminated

Everything is set up in the system path and I am running AS from the project folder containing the .a48 file.

What am I missing? There doesn't appear to be a good solid beginners guide floating around that I can see.

Thanks!
S

EDIT: Looks like it simply doesn't like the source file example! Strange as the assembler and source code examples were from the same site (Soeren Gusts programming guide)
« Last Edit: January 14, 2016, 10:34:33 PM by retroshaun » Logged
Rene_G7400
Moderator
I take the Videopac and leave the Canoli!
*****
Posts: 2519



WWW
« Reply #1 on: January 14, 2016, 11:04:59 PM »

In line 38 there is a reference to file g7000.h, so AS can't find this file.
Logged
retroshaun
Trying to get the cartridge in...
*
Posts: 33


« Reply #2 on: January 15, 2016, 05:20:17 PM »

It wasn't that, however I got it working, kinda. It assembles and I can create a .bin but o2em crashes when I load it! I am guessing its the p2bin part, maybe the memory addresses?

Thoughts?
« Last Edit: January 15, 2016, 07:46:44 PM by retroshaun » Logged
Rene_G7400
Moderator
I take the Videopac and leave the Canoli!
*****
Posts: 2519



WWW
« Reply #3 on: January 15, 2016, 10:07:35 PM »

The p2bin command line should look something like this:

p2bin mygame.p mygame.bin -r 1024-3071

(if your .a48 file starts with "org 400h" as it should.)
Logged
retroshaun
Trying to get the cartridge in...
*
Posts: 33


« Reply #4 on: January 16, 2016, 01:20:51 AM »

Thats exactly the command I use and yes, org 400h is there too. Still crashes. Resultant .bin attached to this message, maybe someone else can try it?
(using o2em 1.18 if that matters?)

Logged
Rene_G7400
Moderator
I take the Videopac and leave the Canoli!
*****
Posts: 2519



WWW
« Reply #5 on: January 17, 2016, 01:51:42 AM »

There's nothing wrong with this .bin file.
Logged
retroshaun
Trying to get the cartridge in...
*
Posts: 33


« Reply #6 on: January 17, 2016, 05:06:30 AM »

Well, its working. I ended up blowing away my full o2em folder and re-getting everything. Something was broken in there, not idea what, but the fresh files work a charm!

Thanks for confirming!
« Last Edit: January 17, 2016, 05:14:59 AM by retroshaun » Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!