Skip to content

Commit

Permalink
icon.library v35.3
Browse files Browse the repository at this point in the history
- fix EndCLI issues on AROS, closes #8
  • Loading branch information
nicodex committed Mar 29, 2021
1 parent 809bd01 commit 27c36c7
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 19 deletions.
29 changes: 17 additions & 12 deletions Libs/icon.library.asm
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,10 @@ IconLibrary:
dc.l .resIdString ; RT_IDSTRING
dc.l .resAuto ; RT_INIT
.resName:
dc.b "icon.library",0
dc.b "$VER: "
dc.b "icon.library";0
dc.b 0,"$VER: "
.resIdString:
dc.b "icon 35.2 (9.9.99) [NicoDE]",13,10,0
dc.b "icon 35.3 (29.3.2021)",13,10,0
.dosName:
dc.b "dos.library";0
align 1
Expand Down Expand Up @@ -132,7 +132,7 @@ IconLibrary:
dc.b $02!$04 ; LIBF_SUMUSED!LIBF_CHANGED
align 1
dc.b %10000001,$14 ; LIB_VERSION/LIB_REVISION/LIB_IDSTRING
dc.w 35,2
dc.w 35,3
dc.l .resIdString
align 1
dc.b %00000000
Expand Down Expand Up @@ -233,16 +233,21 @@ IconLibrary:
lsl.l #2,d7
movea.l d7,a2
lea $001C(a2),a1 ; cli_StandardInput
movea.l (a1)+,a0
lea (a0,a0.l),a3
clr.l $0014(a3,a3.l) ; fh_End
move.l (a1)+,a3
move.l (a1),d1 ; (cli_CurrentInput)
beq.b .cinDone
cmp.l a3,d1
beq.b .cinDone
move.l a3,(a1)
jsr -$0024(a6) ; _LVOClose
.cinDone:
moveq #-1,d0 ; DOSTRUE
move.l d0,$002C(a2) ; cli_Background
cmpa.l (a1),a0 ; (cli_CurrentInput)
beq.b .argDone
move.l (a1),d1
move.l a0,(a1)
jsr -$0024(a6) ; _LVOClose
adda.l a3,a3
lea $0014(a3,a3.l),a3
move.l (a3),d0 ; (fh_End)
clr.l (a3)
move.l d0,-(a3) ; (fh_Pos)
.argDone:
movea.l a6,a1
movea.l (4).w,a6 ; AbsExecBase
Expand Down
11 changes: 5 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ project has grown to allow starting the ROM Workbench:
task from V1.x ROMs without the need for the original Workbench disk
(which you otherwise must own/buy).
Also supports the CLI command-line template `LoadWB/S,DELAY/S,EndCLI/S`.
Therefore, you can execute `Libs/icon.library EndCLI <>NIL:`
Therefore, you can execute `Libs/icon.library EndCLI`
to close the initial CLI on 1.x ROMs
(on 2.x/3.x/AROS you should prefer the internal `EndCLI` command).
- [`Libs/version.library`](Libs/version.library.asm)
Expand Down Expand Up @@ -95,14 +95,13 @@ The binaries and the disk image have been tested with the following ROMs
| `amiga-os-310-a4000.rom` | + | + | + | + |
| `amiga-os-310-a4000t.rom` | + | + | `*` | + |
| `amiga-os-320-walker.rom` | + | + | + | + |
| `aros-20170328[-ext].rom` | + | + | + | `***` |
| `aros-20181209[-ext].rom` | + | + | + | `***` |
| `aros-20210207[-ext].rom` | + | + | + | `***` |
| FS-UAE internal `**` | + | + | + | - |
| `aros-20170328[-ext].rom` | + | + | + | + |
| `aros-20181209[-ext].rom` | + | + | + | + |
| `aros-20210207[-ext].rom` | + | + | + | + |
| FS-UAE internal `**` | + | + | + | + |

- `*` requires `Libs/workbench.library` on disk (not included in ROM)
- `**` as of this writing AROS `Version SVN50730, built on 2015-05-20`
- `***` has to be the last line in Startup-Sequence without a newline

Test configurations for [FS-UAE](https://fs-uae.net/) are included in
`test/fs-uae/` (you have to import the referenced Kickstarts first).
Expand Down
2 changes: 1 addition & 1 deletion S/Startup-Sequence
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
HelloAmi
Libs/icon.library LoadWB DELAY EndCLI
Libs/icon.library LoadWB DELAY EndCLI

0 comments on commit 27c36c7

Please sign in to comment.