***NEW DEMO***

Basic and Machine Language

Moderator: Moderators

Post Reply
Legacy
Vic 20 Enthusiast
Posts: 154
Joined: Wed Dec 31, 2008 4:01 pm

***NEW DEMO***

Post by Legacy »

Here it is, the long awaited First Edition from Glaswegian Demo group 'Haxxorz' : FLAPPER author:Legacy

This is to be run on Unexpanded VICE Emulator

flapper.vsf
Legacy
Vic 20 Enthusiast
Posts: 154
Joined: Wed Dec 31, 2008 4:01 pm

Post by Legacy »

How do I make this into .prg, do I need todo that on a real VIC20
Richard James
Vic 20 Devotee
Posts: 269
Joined: Mon Feb 04, 2008 6:06 am

Post by Richard James »

If you run VICE from the command line you can access the system monitor and save the BASIC code to disk as a .prg file.

HOWTO get BASIC programs out of VICE

Code: Select all

Type in your program or load it.
In the VICE menu select the monitor
type
m 2b 2e
This will print out the start and end address of the BASIC program
remember the VIC stores 16bit addresses as low byte high byte
e.g.
>C:002b 01 10 03 10
start is the first two numbers 01 10 which is 1001
end is the second two numbers 03 10 which is 1003
type
save "test.prg" 0 1001 1003
or whatever numbers are the start and end of BASIC for your program
Note this method will only work for a BASIC program. If you want Machine Code saved you need to work out it's end and start manually. Also I have not tested this method on Microsoft Windows only in Linux.

In case you have trouble I have already converted it to a prg file here.
http://richardjames13.110mb.com/vic20/flapper.zip
Change is inevitable except from a vending machine.
Legacy
Vic 20 Enthusiast
Posts: 154
Joined: Wed Dec 31, 2008 4:01 pm

Post by Legacy »

Thanks!
carlsson
Class of '6502
Posts: 5516
Joined: Wed Mar 10, 2004 1:41 am

Post by carlsson »

A tip: clear screen memory instead of colour memory when you are animating things. It will make the traces not visible when you change background colour. Well, perhaps it was an intended effect, I can't determine.
Anders Carlsson

Image Image Image Image Image
Legacy
Vic 20 Enthusiast
Posts: 154
Joined: Wed Dec 31, 2008 4:01 pm

Post by Legacy »

This BASIC code is screaming fast, watch out or you won't know what hit you! Demo #2 Legacy

Unexpanded 3583 Bytes Free

legacy.prg
The only way to program better is to find a better programmer. - Legacy 2009
CurtisP
Vic 20 Dabbler
Posts: 99
Joined: Tue Mar 08, 2005 8:24 pm

Post by CurtisP »

Legacy wrote:This BASIC code is screaming fast, watch out or you won't know what hit you! Demo #2 Legacy
legacy.prg
Nice use of the VIC registers.
Richard James
Vic 20 Devotee
Posts: 269
Joined: Mon Feb 04, 2008 6:06 am

Post by Richard James »

Very good. I look forward to seeing more of your work.
Change is inevitable except from a vending machine.
Post Reply