English Amiga Board


Go Back   English Amiga Board > Main > Amiga scene

 
 
Thread Tools
Old 11 December 2023, 18:33   #81
Don_Adan
Registered User
 
Join Date: Jan 2008
Location: Warsaw/Poland
Age: 56
Posts: 2,023
Quote:
Originally Posted by TCH View Post
You mean this instruction itself is illegal? Why?
I dont know. This is info from my assembler book, and if I remember right I never find similar instruction in resourced code.
Anyway You can try to assemble this instruction in Vasm or Phxass, or other assembler, and check result.
Don_Adan is offline  
Old 11 December 2023, 18:53   #82
modrobert
old bearded fool
 
modrobert's Avatar
 
Join Date: Jan 2010
Location: Bangkok
Age: 56
Posts: 779
Quote:
Originally Posted by TCH View Post
- http://oscomp.hu/depot/png2ilbm_1.1....miga-68020.lha
- http://oscomp.hu/depot/png2ilbm_1.1....8020+68881.lha

Could someone test it on a real hardware too, that it is giving GURU $80000004 there too?
Those two GURU with $80000004 for me on the A1200 (see signature for details).

What version of SAS/C are you using?

You can find SAS/C 6.58 plus Y2K patch here.
modrobert is offline  
Old 11 December 2023, 19:03   #83
TCH
Newbie Amiga programmer
 
TCH's Avatar
 
Join Date: Jun 2012
Location: Front of my A500+
Age: 38
Posts: 372
Quote:
Originally Posted by Don_Adan View Post
I dont know. This is info from my assembler book, and if I remember right I never find similar instruction in resourced code.
Anyway You can try to assemble this instruction in Vasm or Phxass, or other assembler, and check result.
You're right. I tried it here. Result was
Code:
Error on line 4: Incorrect first operand addressing mode, received "(An)+", expected "(An)/Ea/<LABEL>"
So, that concludes it: without that 'fprintf()' SAS/C generates an illegal instruction there. Strange though: according to the opcode table, it should be fine.
Quote:
Originally Posted by modrobert View Post
Those two GURU with $80000004 for me on the A1200 (see signature for details).
Thanks. Thought so, that it should not make any difference.
Quote:
Originally Posted by modrobert View Post
What version of SAS/C are you using?

You can find SAS/C 6.58 plus Y2K patch here.
Same. It can be downloaded from here too:
http://oscomp.hu/?details/SAS%2FC_6.58_Amiga_840
http://oscomp.hu/?details/SAS%2FC_6....atch_Amiga_841
TCH is offline  
Old 11 December 2023, 19:43   #84
Don_Adan
Registered User
 
Join Date: Jan 2008
Location: Warsaw/Poland
Age: 56
Posts: 2,023
Seems to be compilator bug. Some compilators creates f.e.
move.b Dx,Ax
code, which is illegal too. Even if in theory it can works as extb.l command.
Don_Adan is offline  
Old 11 December 2023, 20:11   #85
TCH
Newbie Amiga programmer
 
TCH's Avatar
 
Join Date: Jun 2012
Location: Front of my A500+
Age: 38
Posts: 372
Well, thanks for the info. At least we know now why it caused $80000004. So, just like in the story of E-Penguin: the 'fprintf' stays, "do not remove"...
TCH is offline  
Old 12 December 2023, 12:46   #86
modrobert
old bearded fool
 
modrobert's Avatar
 
Join Date: Jan 2010
Location: Bangkok
Age: 56
Posts: 779
Code:
8.System:Temp/png_test> timeit png2ilbm test.png test_fpu.iff -bp=4 -w=300 -h=200

Decoding test.png...
Rendering...
Rescaling...
Quantizing...
Saving test_fpu.iff...

Elapsed: 4m 44.25s

8.System:Temp/png_test> timeit png2ilbm_nofpu test.png test_nofpu.iff -bp=4 -w=300 -h=200

Decoding test.png...
Rendering...
Rescaling...
Quantizing...
Saving test_nofpu.iff...
 
Elapsed: 12m 45.97s
Pretty big difference between png2ilbm v1.1.4 68020+FPU version compared to 68020, roughly three (~2.80) times faster with FPU.
modrobert is offline  
Old 12 December 2023, 14:56   #87
TCH
Newbie Amiga programmer
 
TCH's Avatar
 
Join Date: Jun 2012
Location: Front of my A500+
Age: 38
Posts: 372
Not surprising at all, considering how much floating point-based calculations it uses. That's why i provided the FPU-supporting binary.
TCH is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
new WAV to 8SVX converter for Amiga, MorphOS and Linux TCH Amiga scene 26 11 December 2023 16:10
FS-UAE 2.0 for Windows, Mac OS X, Linux and FreeBSD FrodeSolheim News 6 31 October 2012 23:25
PNG Icon to Color Icon Converter? Leandro Jardim request.Apps 1 24 May 2010 04:39
UAE for Sun Solaris (Sparc) commie1974 support.OtherUAE 8 31 August 2006 21:46
convert .info to png or jpg(with linux) lostfriend request.Apps 4 22 March 2006 01:26

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 00:48.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.07886 seconds with 14 queries