[Turbo Pascal] Q&A official thread

Page 7/9
1 | 2 | 3 | 4 | 5 | 6 | | 8 | 9

By popolony2k

Hero (521)

popolony2k's picture

19-04-2018, 04:49

Maybe...

...they have removed this procedure, just to fit new features to 3.3f version of Turbo Pascal.

I'll check this for you and soon I'll respond here.

[]'s
PopolonY2k

By ToriHino

Master (207)

ToriHino's picture

22-06-2018, 07:28

Hi poplony2k did you already release those memory mapper functions you mentioned earlier in this thread?

By popolony2k

Hero (521)

popolony2k's picture

22-06-2018, 09:59

Hi @ToriHino...

...unfortunately I'm still working on this part of library but, please, stay tunned at this thread PopolonY2k Framework and very, very soon I'll commit the Mapper support (direct or over BIOS), so please wait just a little bit more.

[]'s
PopolonY2k

By ToriHino

Master (207)

ToriHino's picture

22-06-2018, 16:57

popolony2k wrote:

Hi @ToriHino...

...unfortunately I'm still working on this part of library but, please, stay tunned at this thread PopolonY2k Framework and very, very soon I'll commit the Mapper support (direct or over BIOS), so please wait just a little bit more.

[]'s
PopolonY2k

Great, good news! I started working a bit now with your framework and the thing missing was the mapper support :D Since i rather use all from one single framework i'll wait just a bit more for your update.

By Francisco Gálvez

Supporter (14)

Francisco Gálvez's picture

09-07-2018, 20:04

Hi folks...
I'm getting crazy with TP... Nonsense errors appears with no explanation... I mean put a new line with a new variable may cause an error, for example.

After lot of hours I think It is the programming environment, I mean ...
I use:
Windows 10
Notepad++ (I've tried ascii and UTF8 codification)
dosbox
command: tp3.exe MYGAME /S2E9B /ED200 /Rerrors.txt >result.txt

After that I use diskmanager to update a disk and bluemsx or openmsx to test the result (this part is not the problem)

I'd like to ask you what programs do you use? notepad? linux? ... what are the steps you follow to code and compiling?

Tons of thanks in advantage...

By ToriHino

Master (207)

ToriHino's picture

09-07-2018, 20:34

I'm using the setup from SdC now (TP Nostalgia). This consists of the Visual Studio Code editor, in combination with some scripting to automate compilation (using DosBox) and creation of a disk image. It also parses the output of TP3 and indicates errors in the editor.

By SdC

Rookie (25)

SdC's picture

09-07-2018, 22:03

Most importantly: make sure the PAS file and all include files have an EoF (End of file) character at the end (most editors show it as a block symbol, it's ASCII code 10 (&HA).
Yes, I'm working on integration of MS Visual Code (currently the most used IDE in the world) it's free and open source (yes, from Microsoft!), almost as good as Visual Studio (although Pascal support is a bit ...basic)
With my template, you just make a copy of the folder structure for each of your projects, and it will work completely stand-alone as well; all the compilers/tools are included. I'm still working on it a lot and will update regularly; just posted the first version a week ago.
https://code.visualstudio.com/
https://github.com/decocq-stuff/msx-pascal-project-template

By SdC

Rookie (25)

SdC's picture

10-07-2018, 19:00

While we're on the subject, and I'm still new to the forum, and this is the "official" Pascal discussion, I'll explain my intentions:
-The Visual Code build environment is going to be my big Hobby Project for the next few months (until November or so). When I have a hobby project going, it occupies my brain 100%, until I get bored with it eventually, and the result is "good enough"
-I need the help of the community to achieve as much as possible in that short time: learn as much as possible and get the best result for as many like minded people as possible. I don't know everything, I can't do everything, I can't test everything, I don't have the same hardware as everyone.
-Anyone posting in this forum with issues/feature request or any question: bring it on!
-My specialties as a IT pro are towards server/network administration and consultancy for small/medium business; you know, Windows networks with SQL databases, Office 365, Active Directory, Powershell, Cisco routers, firewalls, a bit of *nix, a bit of everything. But ever since MSX I've kept up with programming Basic as a hobby; VB6/VBA/VBscript and a lot of vb.net.
-Currently, I have a Sony HB-700p, same as I had as a kid. That is going to be my development target for the moment. I seem to remember from the computer club days (SGGA Apeldoorn) it was close to fully compatible with the Philips 8250 (except poke -1,170 on the Philips, poke -1,255 on the Sony to get cracked games to run Smile, or was it the other way around). But I have my eyes on a Turbo-R posted here on the forum....

Alright, the features I definitely want to achieve:
-A GUI driven "project setup" wizard which will configure: emulator settings, global variables, "Make" action list, boiler plate code, VS Code settings.
-For the boiler plate code, use the @PopolonY2k framework. This will be fully integrated, so the includes will be fully managed. By the time I get to that point, I hope to collaborate with him to get the best result.
-Graphics conversion suite. To enable coherent automatic conversion of Windows graphics files to MSX bitmaps, sprites and palettes.
-Linux compatibility: shouldn't be too hard with DOSBox and a drop of Wine.
-Actually develop a few fun little programs for the MSX for the public!

Nice to haves (a nerd's * dream...):
-Fork or collaborate with the pascal-language VS Code add-on to see how far I can go with Statement checking (this will allow you to get fully functional autocomplete, syntax checking and "go to definition")
-Support for ASM, either directly and/or through Pascal INLINE.
-Support for C compiler
-Support for BASIC: as a language in VS Code (text to-from tokens)
-Support for BASIC: compile, or convert to C or Pascal. Haven't really investigated these options yet.
-Debugger integration with VS Code. Hopefully directly through OpenMSX itself, otherwise a Windows debugger debugging the OpenMSX.exe process. Ultimately with Checkpoints, symbols and everything. But that's new territory for me at this point.
-In the "ludicrous" category: remote debugging on real hardware or emulator on remote machine Smile

Good fun!

By santiontanon

Hero (584)

santiontanon's picture

10-07-2018, 23:13

SdC wrote:

Most importantly: make sure the PAS file and all include files have an EoF (End of file) character at the end (most editors show it as a block symbol, it's ASCII code 10 (&HA).

ASCII code 10 (&HA) is a "line feed" character, not an end of file though... As far as I know there is no "EoF" character in ASCII. MSDOS used 26 as an end of file in text mode if I don't remember wrong. But that was not part of the ASCII standard, and definitively not anything that is portable...

By SdC

Rookie (25)

SdC's picture

11-07-2018, 08:45

Quote:

ASCII code 10 (&HA) is a "line feed" character, not an end of file though... As far as I know there is no "EoF" character in ASCII. MSDOS used 26 as an end of file in text mode if I don't remember wrong. But that was not part of the ASCII standard, and definitively not anything that is portable...

Yeah you're right, it's not an actual ASCII character, but, reading up on it, it's more of a CP/M - MSX-DOS thing. CP/M expects records of 128 bytes. As a text file length is not likely to be exactly a factor of 128 bytes, the OS needs to be told when the actual content ends. Since TP appears to use those routines, the lack of such a character will cause the compiler to keep reading beyond the text, and returning unexpected results (whatever data is on the remainder of the sector). Looking at it with a hex editor, the last characters after the actual text appear to be ( 0d 0a 1a 0d 0a ) for my example. Notepad++ displays it as "TAB" symbol (not actual tab), VS Code as a square block. In the old Snowfighters sample code (as downloaded from Hans Otten's site), some of the files were missing the symbol, so I couldn't get it to compile at first. Copy/pasting the symbol from working files, fixed that.

Page 7/9
1 | 2 | 3 | 4 | 5 | 6 | | 8 | 9
My MSX profile