Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

8086 BASIC interpreter source?

446 views
Skip to first unread message

xlar54

unread,
Jan 17, 2011, 2:23:54 AM1/17/11
to
Looking for 8086 BASIC interpreter source.. the very old kind with
line numbers, etc. I found tinybasic for the 8080, but Im not sure
how to convert it.

Frank Kotler

unread,
Jan 17, 2011, 8:46:44 AM1/17/11
to

Some time ago, we read this:

------------------------------
Subject: What flavor of ancient X86 assembler is this ?
Date: Tue, 12 Dec 2000 06:09:44 -0000
From: "jdm" <jdm1intx@DIE_SPAMBOT_DIEhome.com>
Organization: Excite@Home - The Leader in Broadband http://home.com/faster
Newsgroups: comp.lang.asm.x86

This is the venerable source for the X86 version of Tiny Basic, as
written by Michael Sullivan, lo these many years ago. I am trying to
get it to assemble with TASM 5.0 (16 bit) and it doesn't like it very
much. A lot of the problems I've been able to get around by adding
Borland-esque declarations and keywords, but 4 lines after the START:
label you'll see a prime example of code that I am having a hard time
deciphering. I wonder if this code was written for some old shareware
assembler like A86 or something. I'd really like to get this
converted to TASM-compatible code so I could step through it with the
debugger and learn more about it. I'm learning all I can about
interpreters and compilers and this would really give me some valuable
insights I think.

Thanks,

John M.

;***************************************************************
;*
;*
;* TINY BASIC FOR INTEL 8086
;*
;*
;* VERSION: 1.1
;*
;* BY
;*
;* MICHAEL SULLIVAN
;* BASED
;* ON
;* LI-CHEN WANG'S
;*
;* 8080 TINY BASIC
;*
;*
;* 27 JUNE 1982
;*
;* @COPYLEFT
;* ALL WRONGS RESERVED
;*
------------------------------------

Tasm, no, but I did get it to assemble with Nasm.

http://home.myfairpoint.net/fbkotler/tbasic.zip

The .zip file contains the original post, "tbasic.asm" and
"tbasic2.asm". I don't recall just what the difference is - converted
the source to lowercase in tbasic2.asm... I may have allowed case
insensitive commands. No guarantee it's right! Good luck!

(the original assembler was "Zasm", apparently)

Best,
Frank

s_dub...@nospicedham.yahoo.com

unread,
Jan 17, 2011, 6:42:41 PM1/17/11
to
On Jan 17, 7:46 am, Frank Kotler

<fbkot...@nospicedham.myfairpoint.net> wrote:
> xlar54 wrote:
> > Looking for 8086 BASIC interpreter source.. the very old kind with
> > line numbers, etc.  I found tinybasic for the 8080, but Im not sure
> > how to convert it.
>
> Some time ago, we read this:
>
> ------------------------------
> Subject: What flavor of ancient X86 assembler is this ?
> Date: Tue, 12 Dec 2000 06:09:44 -0000
> From: "jdm" <jdm1intx@DIE_SPAMBOT_DIEhome.com>
> Organization: Excite@Home - The Leader in Broadbandhttp://home.com/faster

Hey, works for me, thanks Frank.


8086 tiny basic v1.1 27 june 82

ok
>100 2+3
>edit 100
100 2+3
>100 x = 2+3
>110 print x
>200 stop
>run
5

ok
>list
100 x = 2+3
110 print x
200 stop

ok
>bye

-f bin
-l TINYBAS2.LST
-E TINYBAS2.WPD
-o TINYBAS2.BIN
tbasic2.asm

Steve

0 new messages