flat assembler
Message board for the users of flat assembler.

Index > Programming Language Design > My assembler for MC145000B chip written in C

Author
Thread Post new topic Reply to topic
Manna5_



Joined: 01 Nov 2021
Posts: 1
Location: Kraków
Manna5_
I have written an assembler for the Motorola's MC145000B microcontroller. It comes with a pseudo-emulator (because it is not a fill emulator) that allows you to test your program on your PC without moving it into a MC145000B-based chipset. The assembler uses an unusual syntax, where:
- every mnemonic have to be prefixed with an underscore and written using lowercase (_rtn for example), direct stacking (_rtn_xnor) is not allowed, at least one separator character is required (_rtn _xnor)
- everything that is not a mnemonic is ignored as a comment
- text and mnemonics between hash and newline are also ignored
- in case of unknown mnemonic, assembly is not stopped, a message is printed
What you think about it?


Description: Source code of the pseudo-emulator
Download
Filename: emulate.c
Filesize: 2.1 KB
Downloaded: 20 Time(s)

Description: Source code of the assembler
Download
Filename: assemble.c
Filesize: 2.48 KB
Downloaded: 22 Time(s)

Post 02 Nov 2021, 14:16
View user's profile Send private message Send e-mail Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.