    

                  6502 SDK 1.0 (BETA) - SOURCES


Ok. You wanted the sources: here are all the sources for 65402SDK.
But be careful: building everything wont't be simple, and understanding
how the whole thing works will be nearly impossible. There are three reasons
for this:

1) 6502SDK was, initially, a command-line ANSI-C assembler program. Then
I started to think to an IDE under DOS, in Turbo C and I wrote part of
the emulator, the disassembler and added the macros to the assembler.
Then I changed my mind again, and I ported everything to Windows 3.1
with Borland C++ 3.1... the result is a very strange mix of C and C++.

2) Again, when I wrote the code I didn't planned to release sources, and
all variable names and (rare) comments are in Italian. Sorry.

3) The parser and the scanner have been written using two Unix-Linux
utilities called "lex" and "acc" (or "flex" and "bison" for Linux). If
you don'know what regular grammars and BNF form are, you have only
two choices: learning lex and yacc or reading the C files. Reading
the C file is... how to say... well, look by yourself.

However, here are the files:

6502sdk.hpj            Windows Help project file
6502sdk.rtf            help file in RTF

6502stub.asm      
6502stub.exe           DOS stub 

asm6502.lex            scanner, to compile using lex or flex.
lexyy.c                scanner compiled with flex -i

asm6502.y              parser, to compile using yacc or bison.
asm6502_.c             parser compiled with bison 
asm6502_.h             parser header file, generated automatically
                
asm6502.prj            BC++ project file 

owl.def                BC++ .DEF file

asm6502.rc             resource file (source)
asm6502.res            resource file (binary)

*.cpp, *.c, *.h        source code

*.ico                  icons

readme.txt             this file 


... and good luck.

The Author
                                Valerio Gionco
                           s74454@cclix1.polito.it

