-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BMP display offset #3
Comments
Glad that I could provide something useful. |
I ported FORTH to the DM41X, I haven't setup a repository yet but you can see it at: https://youtu.be/jUzSyXVy9bo BTW, I had to tweak the BMP code further as although it's monochrome it still uses a colour table so you can't invert all BMP files and you need to check the colour table first as the index into the colour table could point to white then black or black then white. Hope that makes sense. Doesn't affect your program as I believe you only load your own BMP files that have the table the same way. |
Looks great - you solved the need of a keyboard very good - I'm a FORTH fan too. Right now I'm programming some kind of application suite (calculator, spreadsheet, 'powerpoint', text editor,...). Maybe you want to take a look at https://github.com/zooxo/desk42 Btw - when programming my 'powerpoint' I made some documentation to implement BMP files (size: 200x104) - maybe you can use this: // BMP-FILESIZE = HEADER+INFOHEADER+COLORTABLE+IMAGE = 14+40+8+2912 = 2974 = b9e |
I don't have a DM42 so would be difficult to use your programs as they keycodes and labels are different unfortunately. So desk42 isn't available yet? I assume it's a single pgm with it all in one? You mention games but I can't see any in the readme, what games are you looking at? I plan to put up a repository for DM-FORTH when I get some time. Is your 35 an emulator or simulator? Thank you for the BMP info, I think mine is working ok so far, I have tested with several of the standard and additional off images available with colour maps around both ways. |
Hi! I tried your FORTH on my DM42. Despite warnings (wrong system) it runs properly and stable (good work) - only other keytable. Does it support float calculation? I tried "22 7 / ." - but I got 3 (instead of 3.14). Floating variable support might be essential to run on a calculator. Did you implement an existing FORTH - which one? I uploaded the recent version of DESK42 to github.com/zooxo/desk42/diemheych.pgm - if you want to try? Most apps are running (STAX calculator, RAX spreadsheet, E6B aviation, MERGE 2048game, ARENA 3dshooter, HP-35 simulator, CAL calendar, SCORE scoretable). I programmed 2 games: MERGE ... a 2048 like puzzle game and ARENA ... a simple 3d shooter (just to see what the DM is capable in graphics and when it goes to FPS limits. ARENA runs well at 20 FPS (when on power grid) or 10 FPS (running on battery). I'm working on DESK42 for almost one year - and need some months for PIC, TXT and FLEX ... and testing. Regards |
I receive "not found" for the pgm link above. The Forth I ported is integer only and a number with a decimal point represents a double. Floating point would be good, I'll have to see how difficult it would be to add. |
It's too bad that your FORTH doesn't support floating number operations. Which FORTH did you use (gforth, amforth)? Sorry, the (hopefully) working link is: If it's still not working please try the link "per hand" - it's there (github zooxo - the desk42 directory). Strange - but as I tried the above link didn't work (but the file is there). Regards |
Hi, the link didn't work and it looks like the other copy has now been deleted. I'm not sure how I will go with the keyboard differences. I might be able to borrow a DM42 though. The FORTH is a simple, portable C implementation of Jones FORTH from https://gist.github.com/lbruder/10007431. |
BTW, how did you create your BMP help files? |
I'm using GIMP - but my version is a bit tricky to save the right black/white-BPM format. I had very bad experiences with Windows/Paint. Btw I like the clear structure of Leif Bruder's FORTH - unfortunately it doesn't run with float variables. I'll try to stick with zFORTH (when there is time) - hopefully it will fit to the DM's memory restrictions. |
Which zFORTH repo? I searched and several came up. If it's small with FP I will have a look - thanks |
BTW, how did you design your font for this? Is there any particular software you used to do this? |
Actually I'm very fast with GIMP (copy, paste) and 'painted' all characters. At this small size it's hard to find a font that gives a good readability. |
I borrowed your BMP display code and noticed the image was slightly offset. I had to change (50-j) to (49-j) in the line below. Reviewing the code, this looks like it is what it should be (to me anyway :-).
for(byte j=0; j<50; j++) d[j]=~bmp[(129+i*52)+(50-j)]; // INvert and flip
The text was updated successfully, but these errors were encountered: