ML Monitor and assembler

Basic and Machine Language

Moderator: Moderators

shem
Vic 20 Enthusiast
Posts: 197
Joined: Sun Sep 17, 2006 6:52 am

ML Monitor and assembler

Post by shem »

Can anyone suggest a good assembler and ML monitor for the vic 20 and possibly a place where i can download it??

Thanks
Shem
Richard James
Vic 20 Devotee
Posts: 269
Joined: Mon Feb 04, 2008 6:06 am

Post by Richard James »

Do you want one that is a cartridge and thus works on the VIC or do you want one that is a program that can run on the PC.

On a PC you can use DASM
http://dasm-dillon.sourceforge.net/

On the VIC there is some stuff on Zimmers
http://www.zimmers.net/anonftp/pub/cbm/ ... index.html
Change is inevitable except from a vending machine.
User avatar
nbla000
Salmon Run
Posts: 2582
Joined: Thu Oct 13, 2005 8:58 am
Location: Italy

Post by nbla000 »

I use DASM to program and the VICE monitor in emulation for tests both for windows.
Mega-Cart: the cartridge you plug in once and for all.
zutman
Vic 20 Newbie
Posts: 15
Joined: Mon Sep 22, 2008 5:37 am

Re: ML Monitor and assembler

Post by zutman »

I use the acme 6502 assembler on linux. It's simple to compile from source and for windows it comes pre-compiled.

http://www.esw-heim.tu-clausthal.de/~ma ... brod/acme/

And ofcourse VICE for testing. Transfer to the real VIC trough my U1541.
shem
Vic 20 Enthusiast
Posts: 197
Joined: Sun Sep 17, 2006 6:52 am

Post by shem »

Thanks for your replies guys... :D
shem
Vic 20 Enthusiast
Posts: 197
Joined: Sun Sep 17, 2006 6:52 am

Lads assembler

Post by shem »

Ok i have downloaded vicmon which works and lads assembler but after attaching the file to xvic (winvice 2.1 ) ans sys48641 it doesnt work
could anyone point me in the right direction? (possibly off the side of a cliff)

Thanks
Shem
User avatar
eslapion
ultimate expander
Posts: 5458
Joined: Fri Jun 23, 2006 7:50 pm
Location: Canada
Occupation: 8bit addict

Re: Lads assembler

Post by eslapion »

shem wrote:Ok i have downloaded vicmon which works and lads assembler but after attaching the file to xvic (winvice 2.1 ) ans sys48641 it doesnt work
could anyone point me in the right direction? (possibly off the side of a cliff)
LADS is not a cartridge image and therefore you can't "attach" it.

You put RAM in BLK5 and you load it which allows it to place itself at the right address (which is NOT $A000) then SYS it.
Be normal.
shem
Vic 20 Enthusiast
Posts: 197
Joined: Sun Sep 17, 2006 6:52 am

Post by shem »

Can I not auto attach tape/disk image? after all winvice accepts prg files
User avatar
eslapion
ultimate expander
Posts: 5458
Joined: Fri Jun 23, 2006 7:50 pm
Location: Canada
Occupation: 8bit addict

Post by eslapion »

shem wrote:Can I not auto attach tape/disk image? after all winvice accepts prg files
LADS is not a tape or disk image.

You can attach PRG files as cartridge images IF and only IF they begin at the start address of memory areas BLK 1, 2, 3 or 5.

LADS is a PRG file but it is NOT a cartridge image and it does NOT start at the beginning of a BLK area. It has to be LOADed like any ML program and then SYSed to start.
Be normal.
User avatar
Mike
Herr VC
Posts: 4841
Joined: Wed Dec 01, 2004 1:57 pm
Location: Munich, Germany
Occupation: electrical engineer

Post by Mike »

eslapion wrote:LADS is a PRG file but it is NOT a cartridge image[...]
... and while one could save complete BLK5 as *.prg, and strip the first two bytes to make LADS attachable as "cartridge" image, it wouldn't work anymore - as LADS performs writes into the BLK5 area. :shock:

Michael
User avatar
eslapion
ultimate expander
Posts: 5458
Joined: Fri Jun 23, 2006 7:50 pm
Location: Canada
Occupation: 8bit addict

Post by eslapion »

Mike wrote:... and while one could save complete BLK5 as *.prg, and strip the first two bytes to make LADS attachable as "cartridge" image, it wouldn't work anymore - as LADS performs writes into the BLK5 area. :shock:
That's good to know. Some people asked me to provide LADS as a ROM option to the Ultimate Expander and for some reason, it didn't work when I tried it on an erasable chip.

Now I know why.
Be normal.
shem
Vic 20 Enthusiast
Posts: 197
Joined: Sun Sep 17, 2006 6:52 am

Post by shem »

Ok now I understand

I have managed to find a listing of LADS all i have to do is type it in
It's been awhile since i had to do that well over 20 years actually
User avatar
eslapion
ultimate expander
Posts: 5458
Joined: Fri Jun 23, 2006 7:50 pm
Location: Canada
Occupation: 8bit addict

Post by eslapion »

shem wrote:Ok now I understand

I have managed to find a listing of LADS all i have to do is type it in
It's been awhile since i had to do that well over 20 years actually
Type it in? That's a very long and tedious job!

Why not simply LOAD the file that's on Zimmer's ?
Be normal.
User avatar
Mike
Herr VC
Posts: 4841
Joined: Wed Dec 01, 2004 1:57 pm
Location: Munich, Germany
Occupation: electrical engineer

Post by Mike »

It is quite useful, maybe even essential for a hosted assembler, if it comes with its own source code, so that it can be easily relocated.

For example, the current file wouldn't allow for any object code, that ends up in BLK5, possibly overwriting LADS. With the source, you can lift up the start of BASIC programs from $1201 to ~$2400, and place LADS inbetween.
shem wrote:I have managed to find a listing of LADS
Where did you find the listing? Is it a scanned document or a text file?

Michael
shem
Vic 20 Enthusiast
Posts: 197
Joined: Sun Sep 17, 2006 6:52 am

Post by shem »

First of all I would like to wish everyone a very happy new year

@Eslapion
I would love to load it in but i have to type it in as its in a book
besides we have it farr to easy these days if i type it in to the real vic it might help me to understand how Lads works

@Mike

The book is called The Second Book Of Machine Language
The book is a Compute Books publication
and if my memory serves me right gklinger has donated it to me some time ago

Thanks Golan

I am sure this book is on line somewhere already in text format ready to copy and paste
Post Reply