|
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 20:11, local time: 2008/7/4 13:42,
owner: NG--944,
38.103.63.16:LOG IN
|
| ©2008 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? Please DO link to this page! Digg it! <A HREF="http://www.piclist.com/techref/member/NG--944/projects.htm"> Projects</A> |
| Did you find what you needed? |
|
o List host: MIT, Site host massmind.org, Top posters @20080704 Apptech, Jinx, Xiaofan Chen, David VanHorn, Alan B. Pearce, Bob Axtell, William \Chops\ Westfield, Cedric Chang, Gerhard Fiedler, bean, * Page Editors: James Newton, David Cary, and YOU! * Roman Black of Black Robotics donates from sales of Linistep stepper controller kits. * Ashley Roll of Digital Nemesis donates from sales of RCL-1 RS232 to TTL converters. * Monthly Subscribers: Shultz Electronics, Larry Williams, David VanHorn, Bryan Whitehouse, Timothy Weber, David Challis. Peter Todd. on-going support is MOST appreciated! * Contributors: Neil Narwani, David Cary, Elemer AM Nyiry, Philip J Taylor, Gus Calabrese of Omegadogs.com, Gautama Venegas, Patrick B. Murphy, William Chops Westfield, Peter Todd, Leslie Ellis |
|
.