Welcome, Guest. Please login or register.

Author Topic: FreePascal for m68k-Amiga with LCL  (Read 17433 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline ALB42Topic starter

Re: FreePascal for m68k-Amiga with LCL
« Reply #14 on: May 11, 2020, 09:56:01 PM »
Sorry in this V2 archive all Executables are the 68k Version.
Thats the reason for the new Version 0.3 (and some more features like search in viewer)

Download here
MCAmiga Page
 

Offline ALB42Topic starter

Re: FreePascal for m68k-Amiga with LCL
« Reply #15 on: May 11, 2020, 10:02:38 PM »
@ALB42
For being a blog about development there is not much to read, especially in relation to any previous(?) post, if any. What does this 'playing with video unit' mean?
Is this MC working in a console or does it just look like it is using the IBM font?

video unit is a "unit" (name for libraries in pascal) which gives functions to write to a DOS Console directly (if you ever used TurboPascal you should know it)
FreePascal has also a TurboPascal-compatible video unit, on non-DOS systems the DOS console is emulated, like e.g. on FreePascal for Amiga-systems.  I never used the video unit in the past, I started with pascal with Delphi on Windows with GUI.
Playing with video means I try to learn how to use it and debug it ;) already fixed some problems, and increased speed a bit.
 

Offline ALB42Topic starter

Re: FreePascal for m68k-Amiga with LCL
« Reply #16 on: May 15, 2020, 07:27:11 PM »
MCAmiga now also with mouse and drag n drop (Appwindow) support

https://blog.alb42.de/2020/05/15/1814/ (with video)
 

Offline ALB42Topic starter

Re: FreePascal for m68k-Amiga with LCL
« Reply #17 on: May 16, 2020, 11:49:20 AM »
sure. I always like to hear feedback (good or bad, as long it's not just destructive :-P)
On which system did you test?
 

Offline ALB42Topic starter

Re: FreePascal for m68k-Amiga with LCL
« Reply #18 on: May 17, 2020, 11:12:23 AM »
Thanks for your feedback highly appreciated :-)

1. After enlarging the MCAmiga's window, if you reduce it you get
graphic corruption at the bottom section of the window.
yeah I also noticed that, I try to work around it (it happens because the windows size does not fit exactly to the char borders)

Quote
2. Element count is taking into consideration the parent directory
link. On AmigaOS this is not counted.
ok

Quote
3. The version that appears in the titlebar contains between other
things the string "$VER:" which should be omitted.
that is just me lazy ;)

Quote
4. The MCAmiga window does not fit on a default High-Res screen mode.
Not everyone has a scan doubler or RTG.
I also do not have on my A1200, I use a hires lace screen ;) by default, you can use a smaller font, later should be in the manual for sure
try:
Code: [Select]
echo vga8 >env:FPC_VIDEO_BUILTINFONT and restart the program

Quote
5. The program requires more than 2 MB of ram. Is it possible to lower
this requirement? Speaking about requirements: can it run on a 68000?
Atm. it can only run on a 68020+ and OS3.x+ you could compile it for 68000 but it would still need OS3.x (because of the memory management)
It would be quite difficult to lower the memory need a lot because I tend to use all the latest language features in my programs
(the program has Streams, RTTI, OOP, inheritance, Generics and so on) of course you could write it without, but thats not my aim.
One could try the very nice NTP-Commander: http://aminet.net/package/util/dir/ntp_commander_2.2 if it runs on a lower Amiga.
I aim more for newer, expanded one.

Quote
6. To use MultiView you need to press SHIFT + F3 according to the
video. This is not documented using the F1 key. Anyway, can that
shortcut be configurable?
its a 0.4 ;-) of course the Help is not finished, its written in the readme btw. the in program help is so short becasue I need to make it scrolling I guess at some point.
in the Readme it is also written how to configure, hint via the ToolTypes of the icon

Quote
7. There is no CLI dialog at the lower portion of the window.
? I do not understand

Quote
8. You cannot drag and drop between panels.
Yeah and I'm also not sure thats want I want to implement (remember that is char based ;))

Quote
9. It would be nice that it could also display protection bits, not
only file/dir names and sizes.
I thought about it but it's already tight on place, maybe one could make it switchable or so, because the date/time would be also nice

Quote
10. How do you run a file that is currently selected?
not implemented atm.
I have to think about a way to do that, maybe even make some clever file recognition part, I still dont know ;)
 

Offline ALB42Topic starter

Re: FreePascal for m68k-Amiga with LCL
« Reply #19 on: May 18, 2020, 08:16:26 PM »
I quickly tested it under OS4 X-5000 and at first it did not work because the tooltype is wrong (project instead of tool) and then got a total freeze ! the 68k is working fine though.
I guess it is the same bug that prevent MUImapparium to work on X-5000 hardware. Is it something to do with the non aligned memory which was removed from the kernel of X-5000 version of OS4 ?
As written on MUIMapparium Release, no FreePascal program will work on the CPU of X-5000, seems its not a PowerPC compatible CPU   :o
We don't have one, there is no AmigaOS4 FreePascal Maintainer (we asked multiple times already, but nobody is willing to do it), so there is very little chance this will change.
I try to keep the OS4 FreePascal port at least somewhat working and compatible with Amiga, AROS and MorphOS but to be honest, I hear/read so often that I should not care about FreePascal, better write my program with language X,Y,Z that Pascal is so bad because XXXX (insert some 70-ties pascal fact) that my focus changed a bit, but not the way the people wanted to.

Sorry for the bad news. But you should be able to use the 68k Version. The speed difference should be not that big for MCAmiga.
 
The following users thanked this post: lionstorm

Offline ALB42Topic starter

Re: FreePascal for m68k-Amiga with LCL
« Reply #20 on: May 21, 2020, 11:22:17 AM »
4. Despite using echo vga8 >env:FPC_VIDEO_BUILTINFONT, the right
window border
is not drawn because the window still does not properly
fit.
Sorry I misunderstood that. I tried to improve the situation,
https://blog.alb42.de/2020/05/21/mcamiga-4-colors/

Quote
7. What I meant as a CLI at the lower portion of the window, is the
same thing that both Norton Commander and ntp_commander_2.2 have. They
simply hold a command prompt on the same window, at the bottom.

Yeah, but as you might notice in ntp-commander that is also not a real Amiga-CLI, it's an own implemented language there
because (as far as I know) it's not really possible to include there a real Amiga shell. Thats the reason I left that away for now.
But hey it's open source maybe someone has an idea and implement that, who is smarter than me ;)
« Last Edit: May 21, 2020, 11:27:50 AM by ALB42 »
 

Offline ALB42Topic starter

Re: FreePascal for m68k-Amiga with LCL
« Reply #21 on: May 22, 2020, 01:13:44 PM »

LHA archives should be browsable like normal directories.... Thats the way I want it... this could be good ;)

https://blog.alb42.de/2020/05/22/mcamiga-lha-archives/ (with video)


P.S. @nyteschade: thanks looks good, even I dont like Annotate so much, because it seems to be too unstable for long time use.

 

Offline ALB42Topic starter

Re: FreePascal for m68k-Amiga with LCL
« Reply #22 on: May 27, 2020, 05:33:18 PM »
MCAmiga 0.5

with support for lha/lzx archives read/write, browse, edit/view files and so on
support for xadmaster.library for other archive types.
Tools menu
start executables
and many fixes, especially on rescale

Download and source link: MCAmiga 0.5
 

Offline ALB42Topic starter

Re: FreePascal for m68k-Amiga with LCL
« Reply #23 on: May 27, 2020, 10:11:31 PM »
I got some questions if I could also compile that for 68000, of course I can, but I never tried, at least it does not crash imidately.

I supply an extra archive for the 68000 Version, next to the MCAmigaV05

https://blog.alb42.de/2020/05/27/mcamiga-0-5-68000/
 

Offline ALB42Topic starter

Re: FreePascal for m68k-Amiga with LCL
« Reply #24 on: May 29, 2020, 06:18:35 PM »
Gulliver: big thanks for the very good bug reports. really helpful.

Mouse selection - fixed

Quote
Command output execution on the new cli has the "FPC Console Output"
as a name for it. Shouldn't it be better to modify it to
"MyCommander Console Output" or something along those lines?
hmm I have no real influence to that, that console window only opens  (automatically by FPC) if you start by icon and therefore no console is available. if you start the program via shell the output would just go to the the shell you used.

Help Screen - yes as I said ;) I have to implement scrolling, already did it yesterday, so hopefully fixed as well

Printed Key:$...  ups I forget some debugoutput

I will work on some more issues the Weekend and make a bugfixed version
 

Offline ALB42Topic starter

Re: FreePascal for m68k-Amiga with LCL
« Reply #25 on: May 29, 2020, 06:23:16 PM »
kolla:

in principle yes becasue the full Code page 437 is available to use, but of course the is a problem, it is Pascal obviously ;)
for exampe chainQ did that:  https://twitter.com/chainq/status/1259478508683870208 with the same method.

But not easy to use from a C source, but because FreePascal and this sources are open source, one could get that idea an implement a C version of that method, should be not too hard, it's just Amiga API.
 

Offline ALB42Topic starter

Re: FreePascal for m68k-Amiga with LCL
« Reply #26 on: May 30, 2020, 04:29:40 PM »
MCAmiga Version 0.6

News:
- fixed wordwarp in viewer fixed missing char
- bottom menu line (with tooltype setting)
- fixed parent select when leaving archive
- tooltype for fullscreen (own screen) setting
- Scroll help screen text if needed
- catch exception for external programs
- unpack archive in tools menu

Download: https://blog.alb42.de/2020/05/30/mcamiga-0-6/
 

Offline ALB42Topic starter

Re: FreePascal for m68k-Amiga with LCL
« Reply #27 on: June 01, 2020, 11:07:37 AM »
Working on Search function for MCAmiga:

https://blog.alb42.de/2020/06/01/working-on-search/  (video)
 

Offline ALB42Topic starter

Re: FreePascal for m68k-Amiga with LCL
« Reply #28 on: June 01, 2020, 04:36:31 PM »
MCAmiga V0.7

after a long weekend finished the source function and made a little release

Download and more information on my Blog  https://blog.alb42.de/2020/06/01/mcamiga-v0-7/

Have fun!

@kolla: not really, problem, atm I do not get an event for the Help key, (remember I use a DOS like emulation layer and there is no Help Key, of course I could map that to F1, would be reasonable, but that I have to change inside FreePascal)
 

Offline ALB42Topic starter

Re: FreePascal for m68k-Amiga with LCL
« Reply #29 from previous page: June 05, 2020, 06:11:20 PM »
MCAmiga v0.8

News:
- Bugfix Move from archive
- lynx type movement
- Bugfix initial view as drive view
- Bugfix overwrite requester when extracting files
- Bugfix crash on double click on file in archive
- Ask to rename the icon together with the file
- Tool entry to select all info files of selected files
- Better support for german umlauts
- automatically create dir icon on request


https://blog.alb42.de/2020/06/05/mcamiga-v0-8/