Afxtp 1.0
#1
Posted 09 December 2004 - 03:13 PM
In the file sharing section I released the AFXTP (= "AFX Turbo Pascal") package right now, that contains some Turbo Pascal 6.0 Units quite usefull for AFX programming purposes.
The package contains just the compiled units and their headers, but neither any documentation nor demo programs, because of (*), and because this units are a bit out of date already, as I'm working on the successor versions yet (especially that of the AfxGfx engine). But this doesn't matter I think, because the (partially commented) unit headers with their procedure heads, types, variables and constants should be self explaining.
Anyway, here a short description of the package's content:
AfxSys:
Provides basic routines to the other moduls, such as block movement, filling, BIOS data area access, interrupts, EMS, ?
AfxCRT:
Similar to TP CRT unit, but for AFX instead of PC. It's advanced compared to original CRT in some points.
AfxGfx:
The module I'm the most proud of . It manages the graphics modes (both BW and grey scale). Functions it provides are:
- Mode selection and Page Flipping (also called double buffering), contrast setting
- Pen objects, Pattern, Dithering and clipping
- native graphical routines StPixel, HLine and VLine
- Extended routines Line, MoveTo, LineTo, RectAngle, FillRect, Fillcircle
- sprite drawing + background (copy, and, or combine)
- Tow public versions: A and B; B is faster than A, but in A you can call the core procedures from your prog
And: it's very fast (written in ASM)! Unfortunately, text drawing routines are not implemented yet. But don't worry, as I said I'm working on the successor version already. This will:
- support 3, 5 and 2^n colors (both in linear and column - mode; refer to Oliver Coupelon's honourable guide)
- extend all already existing AfxGfx routines to support all these modes
- have advanced sprite routines (non - byte aligned pixel offsets, RLE image compression, animated images)
- and have text drawing / font routines, at least
Furthermore, there are AfxTime (RTC and timer, timing routines, timer interrupt), AfxRan (random numbers + initialisation) and AfxStdIO (reimplemented read / write routines). Also contained are the PC versions of all these drivers (except AfxSys, that works also on a PC), that you may use instead of the AFX counterpart during the development phase of your programs.
The big advantage is, that you can test them directly on your computer within the Turbo Pascal IDE: Yeah, you simply have to press F9 to test it!
When ready with coding, just replace the "uses pcgfx,pcran,?" statement by "uses afxgfx,afxran,?", recompile and install it to your calc (the result you get on the AFX will exactly be the same you had on your PC before.)
------
So any one: just try it and have fun with it!
PS: I forgot (that's quite important): call Afx/PCCrt's "initcrt" before using, else they won't work. And if encountering any bugs (or having suggestions I might include to the successor units), please contact me.
[offtopic]Btw:
>* Only rar files are allowed: RAR is the best archiver available. It's far much better than ZIP format. RAR exists for Windows, <{GNULINUX}>, FreeBSD, OSX and even PocketPC.
>Click here to discover RAR possibilities.
>You can link to any file type, but you should use RAR... Really!
You guys managing the file sharing area have an advertising contract with WinRar, isn't it?
(I linked ZIP archive in spite of, cause my WinRar 3.41 produces 7Z, Tar and ZIP, only - I could rename to RAR however - and it produced archives twice as big as the ZIP was. Sorry.)
Well, is there any way to change the description of a file once uploaded to the file sharing area? I tried to format it with *Squarebracket open*U*Squarebracket close* tag, and now you can see it in the description ...
#2
Posted 09 December 2004 - 05:03 PM
Yeah ... 2072 earns money when you download it using his site (I think)
but aside from that it is really is a good compressor and better as zip.
(Though I think ACE us better ...)
And maybe 2072 can change the description (or implement the [U] tag)
I can't.
#3
Posted 09 December 2004 - 06:39 PM
(I linked ZIP archive in spite of, cause my WinRar 3.41 produces 7Z, Tar and ZIP, only - I could rename to RAR however - and it produced archives twice as big as the ZIP was. Sorry.)
You should download the REAL Winrar because there is no way to produce a .7Z or Tar with Winrar...
If I convert AFXTP_10.ZIP with my Winrar 3.41 to RAR, the archive is only 30Kb instead of 60Kb.
(Though I think ACE us better ...)
Why?
And maybe 2072 can change the description (or implement the [U] tag)
I can't.
Yes you can but you have to write [u] not [U] ;-)
#4
Posted 09 December 2004 - 07:20 PM
... but my original goal was to convert them to Pascal, howevermaybe some will "convert" to ASM
oops... seems I really got the wrong versionYou should download the REAL Winrar because there is no way to produce a .7Z or Tar with Winrar...
If I convert AFXTP_10.ZIP with my Winrar 3.41 to RAR, the archive is only 30Kb instead of 60Kb.
OK, thx.Yes you can but you have to write [u] not [U] ;-)
But who could knew that...
And how can I edit an own post in the file sharing area afterwards? Didn?t find any way... is it possible at all?
#5
Posted 09 December 2004 - 11:22 PM
#6
Posted 10 December 2004 - 04:43 AM
#7
Posted 10 December 2004 - 11:14 AM
#8
Posted 10 December 2004 - 05:17 PM
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users