hp2114 basic

Tim Riker Tim at rikers.org
Mon Mar 28 00:03:17 CST 2005


Eric Smith wrote:
> It might be possible to cross-assemble with with asm21:
>     http://www.brouhaha.com/~eric/software/asm21/
> 
> Thus far I've only tested asm21 for assembling the HP 2000C' sources,
> so I don't know how well it will work for other programs.  But it
> runs on an machine with Perl, so it may be easier than using a
> 21xx resident assembler.

Thanx! The files are on:

http://oscar.taurus.com/~jeff/2100/hpbasic/

I tried it out with asm21 and found a few things:

I first removed the tape wrappings from the text files (of course) and 
then combined them all. Then I found that 22255-08.txt has some garbage 
on line 11 and 12:

-      STB BFAD2    SAVE ADDRESS
-      JMP WCONT    MOVE IN AND PROCESS
+     STBFAD2    SAVE ADDRESS
+     P WCONT    MOVE IN AND PROCESS

there are odd chars in the term names:

-	} elsif ($str =~ s/^([a-zA-Z.?%\#\$][0-9a-zA-Z.?%\/=\#\$]*)//) {
+	} elsif ($str =~ 
s/^([a-zA-Z.?%\#\$\&\[\/@\^\!][0-9a-zA-Z.?%\/=\#\$\&\[\/@\^\!]*)//) {

I suspect that change should just be made to asm21.pl

Once compiled, it loads up into simh but running does not seem to do 
much of anything. I suspect it wants the earlier "dumb" mux? Perhaps 
it's just expecting things in different slots. I'll hack on it more, but 
I'm open to suggestions. I'll keep posting things on the wiki from time 
to time:

http://rikers.org/wiki/FirstComputer
-- 
Tim Riker - http://rikers.org/ - TimR at Debian.org
Embedded Linux Technologist
BZFlag maintainer - http://BZFlag.org/ - for fun!


More information about the cctalk mailing list