|
Code Generation ProjectThe project deals with highly optimized assembly code generation for PIC and SX microcontrollers. Now three generators are available. The programs are written in C/C++ and use a very convenient cgihtml C library written by Eugene Kim for interfacing with CGI. With it, an online application is no harder than a command line one.
|
||||||||||||||
Code Converter from PIC to SXWell, SX microcontrollers have almost identical instruction set to the low end PIC generation. But unfortunately the mnemonics are radically different. It really takes some time to adjust. Also a huge base of code exists for PICs, which would be nice to have for these newer (and faster!) micros. So I wrote a program to facilitate the conversion. It is not fully automatic, because some instructions like 'addlw' or 'sublw' are better translated manually, but it helps. The program translates MPASM compatible code to SASM, the standard SX assembler. |
||||||||||||||
Colorer utilityThis utility is designed to make colored HTML listings for SX/PIC assembly programs. The input listing can be either plain text or HTML, but output is always HTML. The code is parsed into several different classes which correspond to the style sheet classes (CSS). The classes are:
You need to specify the style sheet URL in the form to make the utility use the class names. Without the URL, a listing is simply converted to HTML and the classes are not used.
It is quite economical to use styles instead of or similar
tags. The file size grows typically less than 100% (relative to the original plain text input).
Additionally, it is very easy to change the colors and fonts with an
external style sheet file, no need to modify the HTML listings.
Another possibility with this utility is the ability
to link the mnemonics and selected keywords
to the pages explaining their usage. By default, this feature is disabled. If you
need it, specify a list of keywords and URLs. There is an example for
SX asm in the form.
The colorer utility is written in C/C++ and Flex (a text scanner
generator). The keywords were "hardcoded" as the goal of this
project was a good performance (it is going to be used on the
sxlist.com and
piclist.com sites). However, I wouldn't use Flex next time for that stuff. It's
much easier to debug and customize a C program than the Flex rules!
|
||||||||||||||
Charset ExtractorThis program extracts characters from a bitmap, and encodes them to a table. With the program you can pack the pixel lines (either rows or columns) of a character to multiple binary words in any order of bits. Very flexible. You will find there also a few charset examples for several resolutions (from 4x6 to 12x16). |
file: /Techref/member/ng--944/projects.htm, 7KB, , updated: 2004/1/5 19:11, local time: 2024/12/23 18:41,
owner: NG--944,
18.217.89.130:LOG IN
|
©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://techref.massmind.org/Techref/member/ng--944/projects.htm"> Projects</A> |
Did you find what you needed? |