funkheld Posted October 26, 2015 Share Posted October 26, 2015 hello tebe...., this is wonderful with the file. this not function: MadPascal 1.1.9 http://mads.aatri8.info greeting Quote Link to comment Share on other sites More sharing options...
pps Posted October 26, 2015 Share Posted October 26, 2015 Try http://mads.atari8.info Quote Link to comment Share on other sites More sharing options...
tebe Posted October 26, 2015 Author Share Posted October 26, 2015 added instruction (PL) Quote Link to comment Share on other sites More sharing options...
Gury Posted October 27, 2015 Share Posted October 27, 2015 That's great to have documentation. Is there any link to actual mp sources as documentation offers instructions to compile it? Btw... Already great language with many commands, directives and routines (like in Turbo Pascal or Free Pascal) and huge possibilities! Quote Link to comment Share on other sites More sharing options...
flashjazzcat Posted October 27, 2015 Share Posted October 27, 2015 Docs translate very well in Chrome. Quote Link to comment Share on other sites More sharing options...
Gury Posted October 27, 2015 Share Posted October 27, 2015 I mean sources to Mad Pascal Compiler (mp.exe). Just for curiosity sake. Quote Link to comment Share on other sites More sharing options...
tebe Posted October 28, 2015 Author Share Posted October 28, 2015 (edited) mp 1.2.0 http://mads.atari8.info add real type comparison - 32bit signed (Piotr Fusik, Ullrich von Bassewitz) Edited October 28, 2015 by tebe Quote Link to comment Share on other sites More sharing options...
pps Posted October 29, 2015 Share Posted October 29, 2015 Cool, so we can have deep flies into the apple now ? ... if we have enough time for. Quote Link to comment Share on other sites More sharing options...
tebe Posted November 1, 2015 Author Share Posted November 1, 2015 (edited) v1.2.2 add signed types Type Range Size in bytes BYTE 0 .. 255 1 SHORTINT -128 .. 127 1 WORD 0 .. 65535 2 SMALLINT -32768 .. 32767 2 CARDINAL 0 .. 4294967295 4 INTEGER -2147483648 .. 2147483647 4 Edited November 1, 2015 by tebe 4 Quote Link to comment Share on other sites More sharing options...
tebe Posted December 12, 2015 Author Share Posted December 12, 2015 v1.2.8 http://mads.atari8.info CASE statement (Selector -> BYTE, SHORTINT, BOOLEAN, CHAR) UNIT, INTERFACE, IMPLEMENTATION PROCEDURE / FUNCTION modifier: ASSEMBLER, FORWARD, OVERLOAD PROCEDURE / FUNCTION parameters by CONSTANT, VALUE, VARIABLE new unit FASTGRAPH, WINDOWS new procedures / functions: CRT: ClrEol, Consol ; DOS: DosVersion ; GRAPH / FASTGRAPH: Ellipse, GetPixel, Rectangle ; MATH: ArcCos, ArcSin, Floor, FMod, Power, Tan ; SYSTEM: Abs, ArcTan, Exp, Ln, Space, StringOfChar, Sqr, Sqrt ; WINDOWS: GetTickCount sin, cos more accuracy, example sin.pas example from KyanPascal: SAMPLE1.PAS, SAMPLE2.PAS, LINES.PAS 3 Quote Link to comment Share on other sites More sharing options...
Gury Posted December 13, 2015 Share Posted December 13, 2015 Waw!!! Wonderful, awesome stuff... Thank you, Tebe! CASE will shorten conditional programming. Great new features and examples! Quote Link to comment Share on other sites More sharing options...
Gury Posted December 13, 2015 Share Posted December 13, 2015 (edited) Post deleted! Edited December 13, 2015 by Gury Quote Link to comment Share on other sites More sharing options...
flashjazzcat Posted December 13, 2015 Share Posted December 13, 2015 What a great project. Quote Link to comment Share on other sites More sharing options...
funkheld Posted December 14, 2015 Share Posted December 14, 2015 Hello Tebe , this ist wonderful. Thanks. Greting. Quote Link to comment Share on other sites More sharing options...
danwinslow Posted December 14, 2015 Share Posted December 14, 2015 This is starting to look really great. Quote Link to comment Share on other sites More sharing options...
pps Posted December 14, 2015 Share Posted December 14, 2015 WOW fastgraph is really fast. The gfx7 lines are flying around the screen Ok, there are some issues, as sometimes the lines are not drawn correct. Hope to get some time to adapt the asm routines, that where discussed here at atariage. Quote Link to comment Share on other sites More sharing options...
tebe Posted December 14, 2015 Author Share Posted December 14, 2015 gfx7 it's only one buffer (need doublebuffered), line draw (fLine) from http://atariage.com/forums/topic/231690-known-fast-line-algorithms/page-4?do=findComment&comment=3188547 Quote Link to comment Share on other sites More sharing options...
tebe Posted December 20, 2015 Author Share Posted December 20, 2015 Sieve Benchmark, CC65 vs MP (array [0..8191]) sieve.c -> Result hi = $600, lo = $601 ($0995 tick) sieve.pas -> $05C2 tick for array [0..255] ACTION! is similar to MP (34 tick) sieve.zip Quote Link to comment Share on other sites More sharing options...
Gury Posted December 20, 2015 Share Posted December 20, 2015 So Mad Pascal is almost twice as fast as CC65 in this respect? And probably in other areas too. Quote Link to comment Share on other sites More sharing options...
ilmenit Posted December 20, 2015 Share Posted December 20, 2015 (edited) I have fixed the C code to be less Pascal-like (using unsinged char for boolean, memset for fillchar, register for indexes etc.). With an older version of cc65 (2.13.3) and optimizations turned on: cl65 -l -o sieve.c.xex -t atari -Osir -Cl --add-source sieve.c I receive: C - 608 ticks vs Mads Pascal - 1474 ticks For 0...255 to compare with Action! it's 14 ticks. The code, xex and asm output attached. sieve-c.zip Edited December 20, 2015 by ilmenit Quote Link to comment Share on other sites More sharing options...
Gury Posted December 20, 2015 Share Posted December 20, 2015 Sorry, but this example with 8192 elements in 10 iterations runs way faster in Mad Pascal. Tested. Quote Link to comment Share on other sites More sharing options...
devwebcl Posted December 21, 2015 Share Posted December 21, 2015 (edited) 1. any version of mads can be used ? any constraints ? (or always we need to use latest version) 2. Will sqrt() function be implemented in a near future ? Edited December 21, 2015 by devwebcl Quote Link to comment Share on other sites More sharing options...
tebe Posted December 21, 2015 Author Share Posted December 21, 2015 v1.2.9 http://mads.atari8.info sieve - 1386 ticks (length code 1241 bytes) Ilmenit, in this case CC65 is faster (length code 3695 bytes) Quote Link to comment Share on other sites More sharing options...
ilmenit Posted December 21, 2015 Share Posted December 21, 2015 Yep, the size of the C output binary is huge due to used printf function. Fortunately printing to screen memory is easy on Atari without it. Quote Link to comment Share on other sites More sharing options...
tebe Posted December 21, 2015 Author Share Posted December 21, 2015 (edited) cc65 without optimization (-Cl sieve0.c.xex) $07CE ticks (1203 bytes without PrintF) cc65 with optimization (-Osir -Cl sieve.c.xex) $02BE ticks (934 bytes without PrintF) -Cl Make local variables static -O Optimize code-Oi Optimize code, inline functions-Or Optimize code, honour the register keyword-Os Optimize code, inline known C funtions sieve_cc65.zip Edited December 21, 2015 by tebe Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.