![]() |
| | #1 |
| Registered User Join Date: Jun 2004
Posts: 76
| http://tech.groups.yahoo.com/group/minibasic/ Paul |
| Paul Panks is offline | |
| | #2 |
| Registered User Join Date: Jun 2004
Posts: 76
| I should also note that MINI-BASIC uses the Windows API for display, keyboard and file I/O. This should be easy to convert to C or C++ using the stdlib.h Paul |
| Paul Panks is offline | |
| | #3 |
| Registered User Join Date: Jun 2004
Posts: 76
| The original Palo Alto Tiny BASIC appeared in 1976 in the pages of Dr. Dobbs Journal. MINI-BASIC is a modern variant of Palo Alto Tiny BASIC using Windows API calls for screen, keyboard and file I/O. It has 26 variables, A-Z, and 1 array, @(I). Despite these limitations, MINI-BASIC is a robust programming language written in ASM. More commands can be added with ease. Paul |
| Paul Panks is offline | |
| | #4 |
| Kernel hacker Join Date: Jul 2007 Location: Farncombe, Surrey, England
Posts: 15,686
| Not having looked at it, I'd say that rewriting it in C++ is an "intermediate" difficultly - far from impossible, but not a "5 minutes whilst browsing the web" either. -- Mats
__________________ Compilers can produce warnings - make the compiler programmers happy: Use them! Please don't PM me for help - and no, I don't do help over instant messengers. |
| matsp is offline | |
| | #5 |
| Registered User Join Date: Jun 2004
Posts: 76
| What should a person focus on when converting from one language to another? Paul |
| Paul Panks is offline | |
| | #6 |
| Kernel hacker Join Date: Jul 2007 Location: Farncombe, Surrey, England
Posts: 15,686
| First, you need to understand BOTH languages well. Next you need to have some way of testing the new code, to ensure that it still does the same thing as the old one. I have looked a bit at the Mini-Basic code now, and it's using an awful lot of global variables and various naughty assembler tricks (like calls to the middle of a function), which makes the task a bit difficult. -- Mats
__________________ Compilers can produce warnings - make the compiler programmers happy: Use them! Please don't PM me for help - and no, I don't do help over instant messengers. |
| matsp is offline | |
| | #7 |
| Registered User Join Date: Jun 2004
Posts: 76
| Calls to the middle of a function? Could that be causing the occasional (and strange) Windows API error? Paul |
| Paul Panks is offline | |
| | #8 | |
| Kernel hacker Join Date: Jul 2007 Location: Farncombe, Surrey, England
Posts: 15,686
| Quote:
Edit: That's with 278 lines of code. -- Mats
__________________ Compilers can produce warnings - make the compiler programmers happy: Use them! Please don't PM me for help - and no, I don't do help over instant messengers. | |
| matsp is offline | |
| | #9 |
| Registered User Join Date: Jun 2004
Posts: 76
| Looks good. Is that a mock screen, or the real thing? Paul |
| Paul Panks is offline | |
| | #10 |
| Kernel hacker Join Date: Jul 2007 Location: Farncombe, Surrey, England
Posts: 15,686
| It's real in the sense that I copied the MASM code into C++ - although it is more "assembler written in C" than C++, if you see what I mean. I'm currently trying to get the input going - it's a bit long-winded to try to translate back from assembler, but I'm getting there. Once I have basic input working, I'll go to bed for today. Don't know when I will continue (and I don't know if I'll EVER finish it). I've got over 600 lines, but that includes a bit of "comments of work to be done with untranslated assembler code". -- Mats
__________________ Compilers can produce warnings - make the compiler programmers happy: Use them! Please don't PM me for help - and no, I don't do help over instant messengers. |
| matsp is offline | |
| | #11 |
| Registered User Join Date: Jun 2004
Posts: 76
| Looks good. Keep up the good work. ![]() Paul |
| Paul Panks is offline | |
| | #12 | |
| Registered User Join Date: Jun 2004
Posts: 76
| Quote:
Paul | |
| Paul Panks is offline | |
| | #13 |
| Registered User Join Date: Jun 2004
Posts: 76
| |
| Paul Panks is offline | |
| | #14 | |
| Registered User Join Date: Jun 2004
Posts: 76
| Quote:
Paul | |
| Paul Panks is offline | |
| | #15 | |
| Kernel hacker Join Date: Jul 2007 Location: Farncombe, Surrey, England
Posts: 15,686
| Quote:
And it's only 120KB of source code, so I wouldn't call it a "large" program. How is your translation work going? Or are you waiting for me to do it for you? -- Mats
__________________ Compilers can produce warnings - make the compiler programmers happy: Use them! Please don't PM me for help - and no, I don't do help over instant messengers. | |
| matsp is offline | |
![]() |
| Thread Tools | |
| Display Modes | |
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Converting textBox1->Text into a basic string. | azjherben | C++ Programming | 5 | 06-07-2009 08:27 PM |
| [ANN] New script engine (Basic sintax) | MKTMK | C++ Programming | 1 | 11-01-2005 10:28 AM |
| what are your thoughts on visual basic? | orion- | General Discussions | 16 | 09-22-2005 04:28 AM |
| VC++ 6 & MASM (eek) | ahluka | C++ Programming | 2 | 07-16-2005 10:00 AM |