From: <th...@us...> - 2007-11-18 16:09:25
|
Revision: 288 http://ro-oslib.svn.sourceforge.net/ro-oslib/?rev=288&view=rev Author: thughes Date: 2007-11-18 08:09:19 -0800 (Sun, 18 Nov 2007) Log Message: ----------- Corrected register usage for PDumper_TidyJob and definition of PDumper_Format and added some new format values based on a news posting (http://tinyurl.com/2wofsw). (20071118-1, Richard Spencer) Modified Paths: -------------- trunk/!OsLib/Source/User/oslib/PDumper.swi trunk/!OsLib/docs/ChangeLog Modified: trunk/!OsLib/Source/User/oslib/PDumper.swi =================================================================== --- trunk/!OsLib/Source/User/oslib/PDumper.swi 2007-11-18 16:06:32 UTC (rev 287) +++ trunk/!OsLib/Source/User/oslib/PDumper.swi 2007-11-18 16:09:19 UTC (rev 288) @@ -45,12 +45,18 @@ PDumper_FeatureHalftoneColour = PDumper_Features: %100, PDumper_FeatureDiffusedColour = PDumper_Features: %1000; -TYPE PDumper_Format = .Bits; +TYPE PDumper_Format = .Int; CONST - PDumper_FormatHalftoneGrey = PDumper_Format: %1, - PDumper_FormatDiffusedGrey = PDumper_Format: %10, - PDumper_FormatHalftoneColour = PDumper_Format: %100, - PDumper_FormatDiffusedColour = PDumper_Format: %1000; + PDumper_FormatHalftoneGrey = PDumper_Format: 0, + PDumper_FormatDiffusedGrey = PDumper_Format: 1, + PDumper_FormatHalftoneColour = PDumper_Format: 2, + PDumper_FormatDiffusedColour = PDumper_Format: 3, + PDumper_FormatHalftoneMultipassColour = PDumper_Format: 4, + PDumper_FormatDiffusedMultipassColour = PDumper_Format: 5, + PDumper_FormatHalftone16BppColour = PDumper_Format: 6, + PDumper_FormatDiffused16BppColour = PDumper_Format: 7, + PDumper_FormatHalftone32BppColour = PDumper_Format: 8, + PDumper_FormatDiffused32BppColour = PDumper_Format: 9; TYPE PDumper_HalftoneFlags = .Bits; CONST @@ -76,7 +82,7 @@ R1 = PDumper_JobFlags: flags, R2 -> .String: palette_file_name)); SWI PDumper_TidyJob = (NUMBER 0x41B05 "Releases workspace used for a job", ENTRY (R0 = .Ref .Int: anchor, - R3 -> .Int: tags, R2 = .Bool: end_of_document)); + R1 -> .Int: tags, R2 = .Bool: end_of_document)); SWI PDumper_SetColour = (NUMBER 0x41B06 "Processes the colour setting required by the printer dumper", ENTRY (R0 = .Ref .Int: anchor, R1 = OS_Colour: colour, R2 = PDumper_StripType: strip_type_and_pass_no, Modified: trunk/!OsLib/docs/ChangeLog =================================================================== --- trunk/!OsLib/docs/ChangeLog 2007-11-18 16:06:32 UTC (rev 287) +++ trunk/!OsLib/docs/ChangeLog 2007-11-18 16:09:19 UTC (rev 288) @@ -9,6 +9,11 @@ - OSLib sources are now on sourceforge.net SVN managed i.s.o. CVS. (20070414-1, John Tytgat) +* Bug Fixes + - Corrected register usage for PDumper_TidyJob and definition of + PDumper_Format and added some new format values based on a news + posting (http://tinyurl.com/2wofsw). (20071118-1, Richard Spencer) + OSLib 6.90 - Tony van der Hoff 02/01/2007 ---------- * Enhancemnts This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <th...@us...> - 2007-11-18 16:35:16
|
Revision: 289 http://ro-oslib.svn.sourceforge.net/ro-oslib/?rev=289&view=rev Author: thughes Date: 2007-11-18 08:35:14 -0800 (Sun, 18 Nov 2007) Log Message: ----------- Added support for OS_ClaimSWI, OS_ReleaseSWI and OS_ClaimOSSWI based on usenet discussion (http://tinyurl.com/2vfp8k). (20071118-2, Graham Shaw) Modified Paths: -------------- trunk/!OsLib/Source/Core/oslib/OS.swi trunk/!OsLib/docs/ChangeLog Modified: trunk/!OsLib/Source/Core/oslib/OS.swi =================================================================== --- trunk/!OsLib/Source/Core/oslib/OS.swi 2007-11-18 16:09:19 UTC (rev 288) +++ trunk/!OsLib/Source/Core/oslib/OS.swi 2007-11-18 16:35:14 UTC (rev 289) @@ -1884,6 +1884,24 @@ R1! = OS_ColourNumber: colour_number ) ); +SWI OS_ClaimSWI = + ( NUMBER 0x62 "Claims a software interrupt", + ENTRY + ( R0 = .Int: swi, + R1 -> .Asm: routine, + R2 = .Ref .Data: handle //should be int, like other handles + ) + ); + +SWI OS_ReleaseSWI = + ( NUMBER 0x63 "Release a software interrupt", + ENTRY + ( R0 = .Int: swi, + R1 -> .Asm: routine, + R2 = .Ref .Data: handle //should be int, like other handles + ) + ); + TYPE OS_PointerType = .Int; CONST PointerV_TypeQuadrature = OS_PointerType: 0, @@ -2482,6 +2500,34 @@ SWI OS_EnterUSR26 = //RO4+ ( NUMBER 0x74 "Enter 26 bit user mode - RISC O S 4+"); +SWI OS_ClaimOSSWI = + ( NUMBER 0x77 "Claims or releases a software interrupt - + see individual reason codes", ABSENT); + +SWI OSClaimOSSWI_Claim = + ( NUMBER 0x77, + ENTRY + ( R0 # 0 "Claims a software interrupt", + R1 = .Int: swi, + R2 -> .Asm: routine, + R3 = .Ref .Data: handle //should be int, like other handles + ), + EXIT + ( R2 -> .Asm: old_routine, + R3 = .Ref .Data: old_handle + ) + ); + +SWI OSClaimOSSWI_Release = + ( NUMBER 0x77, + ENTRY + ( R0 # 1 "Releases a software interrupt", + R1 = .Int: swi, + R2 -> .Asm: routine, + R3 = .Ref .Data: handle //should be int, like other handles + ) + ); + TYPE OS_HardwareFlags = .Bits; SWI OS_Hardware = Modified: trunk/!OsLib/docs/ChangeLog =================================================================== --- trunk/!OsLib/docs/ChangeLog 2007-11-18 16:09:19 UTC (rev 288) +++ trunk/!OsLib/docs/ChangeLog 2007-11-18 16:35:14 UTC (rev 289) @@ -5,15 +5,20 @@ OSLib 7.00 - In development ---------- -* Build Environment - - OSLib sources are now on sourceforge.net SVN managed i.s.o. CVS. - (20070414-1, John Tytgat) +* Enhancemnts + - Added support for OS_ClaimSWI, OS_ReleaseSWI and OS_ClaimOSSWI + based on usenet discussion (http://tinyurl.com/2vfp8k). + (20071118-2, Graham Shaw) * Bug Fixes - Corrected register usage for PDumper_TidyJob and definition of PDumper_Format and added some new format values based on a news posting (http://tinyurl.com/2wofsw). (20071118-1, Richard Spencer) +* Build Environment + - OSLib sources are now on sourceforge.net SVN managed i.s.o. CVS. + (20070414-1, John Tytgat) + OSLib 6.90 - Tony van der Hoff 02/01/2007 ---------- * Enhancemnts This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <th...@us...> - 2007-11-18 17:03:39
|
Revision: 290 http://ro-oslib.svn.sourceforge.net/ro-oslib/?rev=290&view=rev Author: thughes Date: 2007-11-18 09:03:37 -0800 (Sun, 18 Nov 2007) Log Message: ----------- Added support for OS_AMBControl based on reverse engineering of it's behaviour. (20071118-3, Graham Shaw) Modified Paths: -------------- trunk/!OsLib/Source/Core/oslib/OS.swi trunk/!OsLib/docs/ChangeLog Modified: trunk/!OsLib/Source/Core/oslib/OS.swi =================================================================== --- trunk/!OsLib/Source/Core/oslib/OS.swi 2007-11-18 16:35:14 UTC (rev 289) +++ trunk/!OsLib/Source/Core/oslib/OS.swi 2007-11-18 17:03:37 UTC (rev 290) @@ -2459,9 +2459,119 @@ SWI OS_CallASWI = //RO3.7+ Not APCS-compliant ( NUMBER 0x6F "Calls a run-time determined SWI - RISC O S 3.7+", ABSENT); + +TYPE OS_AMB = .Int "Application memory block"; + +TYPE OS_AMBControlFlags = .Bits; +CONST OS_GivenAMBPageRange = OS_AMBControlFlags: %100000000; + SWI OS_AMBControl = //RO3.7+ - ( NUMBER 0x70 "For system use only - RISC O S 3.7+", ABSENT); + ( NUMBER 0x70 "Performs operations on application memory blocks - + see individual reason codes - RISC O S 3.7+", ABSENT); +SWI OSAMBControl_Create = + ( NUMBER 0x70, + ENTRY + ( R0 # 0 "Creates an application memory block - RISC O S 3.7+", + R1 = .Int: pages + ), + EXIT + ( R1 = .Int: pages_out, + R2 = OS_AMB: amb + ) + ); + +SWI OSAMBControl_Delete = + ( NUMBER 0x70, + ENTRY + ( R0 # 1 "Removes an application memory block - RISC O S 3.7+", + R2 = OS_AMB: amb + ) + ); + +SWI OSAMBControl_Resize = + ( NUMBER 0x70, + ENTRY + ( R0 # 2 "Extends or shrinks an application memory block - + RISC O S 3.7+", + R1 = .Int: pages, + R2 = OS_AMB: amb + ), + EXIT + ( R1 = .Int: pages_out, + R2 = OS_AMB: amb_out, + R3 = .Int: pages_before + ) + ); + +SWI OSAMBControl_Map = + ( NUMBER 0x70, + ENTRY + ( R0 # 3 "Map an application memory block into virtual memory - + RISC O S 3.7+", + R0 | OS_AMBControlFlags: flags, + R1 -> .Data: base_address, + R2 = OS_AMB: amb, + R3 = .Int: start, + R4 = .Int: end + ) + ); + +SWI OSAMBControl_Info = + ( NUMBER 0x70, + ENTRY + ( R0 # 4 "Read information about an application memory block - + RISC O S 3.7+", + R2 = OS_AMB: amb + ), + EXIT + ( R1 -> .Data: base_address, + R3 = .Int: pages + ) + ); + +TYPE OS_LazySwapping = .Int; +CONST + OS_LazySwappingDisable = OS_LazySwapping: 0, + OS_LazySwappingEnable = OS_LazySwapping: 1, + OS_LazySwappingRead = OS_LazySwapping: -1; + +SWI OSAMBControl_LazySwapping = + ( NUMBER 0x70, + ENTRY + ( R0 # 5 "Read or change lazy task swapping state - RISC O S 3.7+", + R1 = OS_LazySwapping: action + ), + EXIT + ( R1 = OS_LazySwapping: state + ) + ); + +TYPE OS_AMBFlags = .Bits; + +TYPE OS_AMBInfo = + .Struct + ( OS_AMB: amb, + .Int: pages, + .Ref .Data: base_address, + OS_AMBFlags: flags + ); + +TYPE OS_AMBTable = + .Struct + ( .Int: count, + OS_AMB: current_amb, + OS_AMBInfo: entries ... + ); + +SWI OSAMBControl_Enumerate = + ( NUMBER 0x70, + ENTRY + ( R0 # 8 "Enumerate application memory blocks - RISC O S 3.7+", + R1 = .Ref OS_AMBTable: table + ) + ); + SWI OS_CallASWIR12 = //RO3.7+ Not APCS-Compliant ( NUMBER 0x71 "Calls a run-time determined SWI - RISC O S 3.7+", ABSENT); // ( NUMBER 0x71 "Calls a run-time determined SWI - RISC O S 3.7+", Modified: trunk/!OsLib/docs/ChangeLog =================================================================== --- trunk/!OsLib/docs/ChangeLog 2007-11-18 16:35:14 UTC (rev 289) +++ trunk/!OsLib/docs/ChangeLog 2007-11-18 17:03:37 UTC (rev 290) @@ -6,6 +6,8 @@ ---------- * Enhancemnts + - Added support for OS_AMBControl based on reverse engineering + of it's behaviour. (20071118-3, Graham Shaw) - Added support for OS_ClaimSWI, OS_ReleaseSWI and OS_ClaimOSSWI based on usenet discussion (http://tinyurl.com/2vfp8k). (20071118-2, Graham Shaw) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |