Search found 9 matches

by sje
Tue Jul 31, 2007 2:38 pm
Forum: Emulation and Simulation
Topic: Running 6502 code as a subroutine in a C program?
Replies: 11
Views: 13636

Emulation speed factor

I wrote a Z80 emulator that works at the microcode level (if the Z80 had had a microcode implementation) along with a complete front panel window that updated at 60 Hz. I managed to run the emulated Z80 at one eighth of the host machine clock rate. One trick employed was the use of lookup tables for ...
by sje
Sat Jul 21, 2007 3:14 am
Forum: Programming
Topic: Writing an assembler
Replies: 17
Views: 13038

Some assemblers already have ways of imbuing symbols with various attributes. For example, a target of a "set" can have its value changed while the target of an "equ" cannot. Similarly, in relocatable assemblies some symbols are relocatable while others are not; some labels are external while others ...
by sje
Wed Jul 18, 2007 7:49 pm
Forum: Programming
Topic: Writing an assembler
Replies: 17
Views: 13038

Close to forty years ago, at least some mainframe assemblers had sufficient expressive power to allow stacks and arrays. The Compass assembler by Control Data Corporation comes to mind; an ingenious coder could create and use all kinds of high level techniques given a sufficient grasp of the ...
by sje
Wed Jul 18, 2007 10:58 am
Forum: Programming
Topic: Writing an assembler
Replies: 17
Views: 13038

Some necessary features

Work continues on my assembler project. As mentioned before, I need extensive pseudo op functionality, and this includes fairly general arithmetic expressions. These constant value expression may appear as the right hand side of a set or equ pseudo op, and also may appear as the displacement field ...
by sje
Sat Jul 07, 2007 5:16 pm
Forum: Programming
Topic: Writing an assembler
Replies: 17
Views: 13038

Your assumption is erroneous.

See my earlier post. I don't spend time on hacking old style C sources. I need named scopes, extensive programmable pseudo op capability, service routine hooks for a working emulator, and several other features. I'm not willing to compromise and neither am I willing to ...
by sje
Sat Jul 07, 2007 2:33 pm
Forum: Programming
Topic: Writing an assembler
Replies: 17
Views: 13038

The object output format will be selectable and will include relocatable output suitable for linking. I'll do a linker as well.
by sje
Sat Jul 07, 2007 8:38 am
Forum: Programming
Topic: Writing an assembler
Replies: 17
Views: 13038

I looked at a whole bunch of them, and at this point I can't recall the specifics of (almost) any of them. Trust me, I would not write an assembler if I had located an already existing one that was suitable for my purposes.

My assembler is coming along nicely and should be ready after a couple more ...
by sje
Mon Jul 02, 2007 6:41 pm
Forum: Programming
Topic: Writing an assembler
Replies: 17
Views: 13038

I need a cross assembler. I also need an integrated disassembler and hooks for an emulator. I'm rather particular about syntax and pseudo op format issues, so the assembler should have flexibility here, or, even better, be able to modify the source file using one syntax style into my style.

Other ...
by sje
Mon Jul 02, 2007 2:44 am
Forum: Programming
Topic: Writing an assembler
Replies: 17
Views: 13038

Writing an assembler

I spent some time recently looking at freeware 6502 assemblers on the net. There are plenty of them, but none that work the way I'd like to see (e.g., portable source, correct operation, high capacity, ease of use, macros, and scoping). So I'm writing my own. Hopefully I'll have it done before my ...