Search found 111 matches

by Mats
Fri Oct 31, 2008 10:44 pm
Forum: Programming
Topic: Hint for the Kowalski simulator
Replies: 5
Views: 4862

In Unix there are the standard commands

dos2unix

and

unix2dos
by Mats
Wed Jan 02, 2008 3:53 pm
Forum: Nostalgia
Topic: CBM/PET BASIC
Replies: 3
Views: 6402

CBM/PET BASIC

A rather detailed memory map of the CBM8032/PET ROM can be found in:

http://www.zimmers.net/anonftp/pub/cbm/firmware/computers/pet/d/petdis

But what about RAM usage? RAM for BASIC use starts at $0400. Is there somewhere a good/detailed description of how BASIC uses RAM and especially where in RAM ...
by Mats
Wed Mar 21, 2007 8:29 pm
Forum: General Discussions
Topic: Make a standard 6502 32bit capable
Replies: 27
Views: 23355

I think this subject is quite a bit out of scope for "6502.org". I do not think anybody reading this forum has the means to design new MC chips. And no chip designer would design a new chip having as main market the hobbyist reading this forum! But obviously, dreams are allowed!

Anyway, for "main ...
by Mats
Mon Mar 19, 2007 7:23 pm
Forum: Programming
Topic: Floating point math on 6502, Commodore style
Replies: 11
Views: 11668

Actually ,scrolling through "http://www.woz.org/" I saw a statement of Mr Wozniak himself saying that Apple decided to go for the Microsoft floating point BASIC instead of for the system Wozniak was working at. This then means that my heading should have been "Commodore and Apple style, in fact ...
by Mats
Fri Mar 16, 2007 2:14 pm
Forum: Programming
Topic: Newbie question: accessing a 16-bit memory address
Replies: 55
Views: 36377

For the benifit of "wstjohn" I put at the end of

http://www.geocities.com/matsr2007/

the source code of the Atari game "Combat" slightly modified to be compatible with the Kowalski assembler/simulator. This is certainly a good template for a Atari game. The hardware problem, to interface an Eprom ...
by Mats
Fri Mar 16, 2007 11:52 am
Forum: Programming
Topic: Newbie question: accessing a 16-bit memory address
Replies: 55
Views: 36377

bogax found the page


http://www.io.com/~nickb/atari/


The following memory mapping is specified there:

VIDEO $0000-$007F
RAM $0080-$00FF
VIDEO $0100-$017F
STACK $0180-$01FF
IO $0281-$0285

ROM $1000-$1FFF

The game "combat" has a reset vector pointing to the ROM start at $1000 and the ...
by Mats
Wed Mar 14, 2007 6:37 pm
Forum: Programming
Topic: Newbie question: accessing a 16-bit memory address
Replies: 55
Views: 36377

gnb10 writes:


I don't think there was any system software as such. Each cartridge will contain the game plus all the support code it needs, and the reset vector just points to wherever the author of that particular cartridge has put the startup code.
This makes the base console cheaper, at the ...
by Mats
Wed Mar 14, 2007 2:14 pm
Forum: Programming
Topic: Newbie question: accessing a 16-bit memory address
Replies: 55
Views: 36377

gnb10 writes:


As I understand it, the 6507 has a 16-bit internal address space and PC like a real 6502, it just lacks some of the address pins. So the ROM cartridge probably has aliases at 8k intervals all the way up to e000-ffff.


Makes sense! It then just that the 3 most significant address ...
by Mats
Wed Mar 14, 2007 12:29 pm
Forum: Programming
Topic: Newbie question: accessing a 16-bit memory address
Replies: 55
Views: 36377

Looking into "Wikipedia" I have learned that 6507 only had 13 address pins for 8K of memory and was lacking the interrupt functions but otherwise was identical to 6502. A part of this 8K address space was mapped into the "game cartridge" where the "game application program" was resident.

To my ...
by Mats
Wed Mar 14, 2007 9:12 am
Forum: Programming
Topic: Newbie question: accessing a 16-bit memory address
Replies: 55
Views: 36377

TMorita writes:


It has no operating system resident in ROM. In fact, it has no built-in ROM. It doesn't have an API either, and no keyboard.


OK, I do not know anything about ATARI, what I know something about are the 65** series chips and the Commodore/PET.

But as the ATARI has a 65** CPU ...
by Mats
Tue Mar 13, 2007 4:44 pm
Forum: Programming
Topic: Newbie question: accessing a 16-bit memory address
Replies: 55
Views: 36377

If you really want to run it on a real ATARI computer I can tell you that with:


*= $FFFA
.word Start ; NMI
.word Start ; RESET
.word Start ; IRQ


nothing will work, the ATARI will be completly dead!

The reset vector in $FFFC,$FFFD has to point to an adequate boot sequence and also the ...
by Mats
Tue Mar 13, 2007 10:13 am
Forum: Programming
Topic: Newbie question: accessing a 16-bit memory address
Replies: 55
Views: 36377

I looked into your full code that you submitted in the beginning to see if the syntax could easily be made compatible with Kowalski(and other) assemblers.
First of all, only labels start in column 1. Then you have many special "directives" etc in your code that obviously cannot be understood ...
by Mats
Tue Mar 13, 2007 6:58 am
Forum: Programming
Topic: Newbie question: accessing a 16-bit memory address
Replies: 55
Views: 36377

..but with your code the first item of the table will never be loaded. You could for example code

bpl .drawLine

instead of

bne .drawLine

to have the loop executed also with "0" in the Y-register!
by Mats
Tue Mar 13, 2007 6:47 am
Forum: Programming
Topic: Newbie question: accessing a 16-bit memory address
Replies: 55
Views: 36377

Why do you say that the Kowalski simulator does not like your syntax? I just tested


PF1_pointer=$00
PF1=$02
WSYNC=$03
*=$0300
;
;SET THE POINTER
;
LDA #<TitleScreen_PF0
STA PF1_pointer
LDA #>TitleScreen_PF0
STA PF1_pointer+1
;
;your code, start
;
ldy #7
.drawLine
lda (PF1_pointer),Y ...
by Mats
Mon Mar 12, 2007 9:01 pm
Forum: Programming
Topic: Newbie question: accessing a 16-bit memory address
Replies: 55
Views: 36377

Then your simulator must be bullshit! Try the one of Kowalski! Your "short" code is absolutely correct and must give exactly the same result as the "long" version!