Emulating a X86 machine
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    serge
    Posts: 725 from 2003/2/20
    Hi,

    I'm searching for informations to emulate a X86 machine properly to do some Word and excel work.
    I should boot under linux or MOl, but this way is boring me. I dont want exit my morphos only to read a little .doc file or other unsupported file format.

    I tryed Bochs, but it doesn't support nice screen resolutions. Only 640x480 in 16 colors. It's very poor.
    Will it be possible in a near futur to use better resolutions?

    I remembre my first steps on X86 emulation with my A1200 and PCtask. This emulator was very slow, but it used screen nice resolutions. I tryed it on Morphos, but unfortunatly, it dont want use my old Hard-Drive image. I tryed to make a new one without succes.

    who can help me to solve this situation please?


    [ Edited by serge on 2006/8/29 8:11 ]
  • »29.08.06 - 08:08
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    luky-amiga
    Posts: 245 from 2003/5/1
    From: Czech Republic
    For reading MS Word document I use Ambient MS Word filetype (by my friend Flegy) - I just doubleclick Word document in MorphOS and thanks to "msword" filetype it shows MS Word document with images(!) via APDF (MS Word -> Antiword -> Apdf). I can't help you with x86 emulation, I know, it's only for reading MS DOC files, but I think this is great to know, it's simple and FAST!

    Copy "msword" to SYS:Prefs/Ambient/filetypes/application

    Req. Antiword and Apdf.

    Problems with attachment...

    AMTD
    1
    Name WORD Document
    Type application/msword
    Action
    Name View with AntiWord -> PDF
    Event DoubleClick
    Command AmigaDOS Run >NIL: SYS:C/antiword -r -s -m CP1250.txt -i 0 -a A4 %sp >RAM:T/temp.pdf
    Command AmigaDOS Wait 1
    Command AmigaDOS SYS:Apps/Apdf/Apdf RAM:T/temp.pdf
    Command AmigaDOS Run >NIL: Delete RAM:T/temp.pdf
    End
    Action
    Name View with AntiWord
    Event Menu
    Command AmigaDOS SYS:C/antiword -r -s -m CP1250.txt %sp
    End
    End


    [ Edited by luky-amiga on 2006/8/29 9:45 ]
  • »29.08.06 - 09:41
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    serge
    Posts: 725 from 2003/2/20
    thank you very much this nice Ambient MS Word filetype. This is an elegant way to view Word files. Is it possible to do the same with Excel files?
  • »29.08.06 - 10:11
    Profile
  • Just looking around
    Otti
    Posts: 20 from 2004/3/31
    From: Germany / Luebeck
    I tried this, but it did not work for me :(
    Looks there is a problem in the command line?
    If I remove the "-r" than I will get an Output only from Antiword, as an
    Textfile. The xy.pdf file in Ram has always 0 kb .

    What is wrong here?
    Using Antiword032b2
  • »29.08.06 - 11:27
    Profile Visit Website
  • MorphOS Developer
    CISC
    Posts: 619 from 2005/8/27
    From: the land with ...
    Quote:

    I tryed Bochs, but it doesn't support nice screen resolutions. Only 640x480 in 16 colors. It's very poor.


    You're wrong, see here and here...


    - CISC
  • »29.08.06 - 12:29
    Profile
  • MorphOS Developer
    CISC
    Posts: 619 from 2005/8/27
    From: the land with ...
    Quote:

    Command AmigaDOS Run >NIL: SYS:C/antiword -r -s -m CP1250.txt -i 0 -a A4 %sp >RAM:T/temp.pdf
    Command AmigaDOS Wait 1


    Why do you do it like this? Looks like a good way to have a race on large documents... Is there any particular reason you have to Run antiword?


    - CISC
  • »29.08.06 - 12:31
    Profile
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    serge
    Posts: 725 from 2003/2/20
    @ CISC:
    great news about bochs and VESA modes. But Are they working with Morphos Port ?
  • »29.08.06 - 13:02
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    luky-amiga
    Posts: 245 from 2003/5/1
    From: Czech Republic
    Antiword converts MS Word document into the PDF and Apdf show this file. It's not possible to view MS Word documents without Antiword. 1 sec wait is just quick idea, maybe there should be one more option to convert Word -> PDF only and don't view it via Apdf because of race condition on large documents (high probability).
  • »30.08.06 - 11:54
    Profile Visit Website
  • MorphOS Developer
    CISC
    Posts: 619 from 2005/8/27
    From: the land with ...
    Quote:

    Antiword converts MS Word document into the PDF and Apdf show this file. It's not possible to view MS Word documents without Antiword. 1 sec wait is just quick idea


    Yes, I understood this part, but if you remove the Run >NIL: part you don't have to Wait 1 (and there's no possibility for a race), is there any particular reason you don't do that? ;)


    - CISC
  • »30.08.06 - 12:03
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    luky-amiga
    Posts: 245 from 2003/5/1
    From: Czech Republic
    Ok, there is new fixed MS Word filetype for Ambient (removed Run and Wait 1):

    AMTD
    1
    Name WORD Document
    Type application/msword
    Action
    Name View with AntiWord -> PDF
    Event DoubleClick
    Command AmigaDOS antiword -r -s -m 8859-2.txt -i 0 -a A4 %sp >RAM:T/temp.pdf
    Command AmigaDOS SYS:Apps/Apdf/Apdf RAM:T/temp.pdf
    Command AmigaDOS Delete RAM:T/temp.pdf >NIL:
    End
    Action
    Name View with AntiWord
    Event Menu
    Command AmigaDOS antiword -r -s -m 8859-2.txt %sp
    End
    End

    ---

    But without "Run", Antiword prints "I can find name of your HOME directory" :-/ To disable this annoying messege, you can setenv HOME - I don't know better solution for now.
  • »30.08.06 - 22:48
    Profile Visit Website
  • MorphOS Developer
    CISC
    Posts: 619 from 2005/8/27
    From: the land with ...
    Quote:

    But without "Run", Antiword prints "I can find name of your HOME directory" :-/ To disable this annoying messege, you can setenv HOME - I don't know better solution for now.


    Easy, just add *>NIL: (yes, really: *>NIL:). ;)


    - CISC
  • »31.08.06 - 00:40
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    luky-amiga
    Posts: 245 from 2003/5/1
    From: Czech Republic
    Thanks CISC! "*>NIL:" is exactly what I was looking for :-)

    There is final version (I hope) of MS Word filetype:

    AMTD
    1
    Name WORD Document
    Type application/msword
    Action
    Name View with AntiWord -> PDF
    Event DoubleClick
    Command AmigaDOS antiword -r -s -m 8859-2.txt -i 0 -a A4 %sp >RAM:T/temp.pdf *>NIL:
    Command AmigaDOS SYS:Apps/Apdf/Apdf RAM:T/temp.pdf
    Command AmigaDOS Delete RAM:T/temp.pdf >NIL:
    End
    Action
    Name View with AntiWord
    Event Menu
    Command AmigaDOS antiword -r -s -m 8859-2.txt %sp *>NIL:
    End
    End
  • »31.08.06 - 12:11
    Profile Visit Website
  • Order of the Butterfly
    Order of the Butterfly
    GK_LKA
    Posts: 481 from 2004/3/28
    From: Hungary
    Hm, where did you get version 0.37? I can find only version 0.36.1... :(
    [ GK / LKA Team ]
  • »31.08.06 - 14:22
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    serge
    Posts: 725 from 2003/2/20
    Quote:


    luky-amiga wrote:
    Thanks CISC! "*>NIL:" is exactly what I was looking for :-)

    There is final version (I hope) of MS Word filetype:

    AMTD
    1
    Name WORD Document
    Type application/msword
    Action
    Name View with AntiWord -> PDF
    Event DoubleClick
    Command AmigaDOS antiword -r -s -m 8859-2.txt -i 0 -a A4 %sp >RAM:T/temp.pdf *>NIL:
    Command AmigaDOS SYS:Apps/Apdf/Apdf RAM:T/temp.pdf
    Command AmigaDOS Delete RAM:T/temp.pdf >NIL:
    End
    Action
    Name View with AntiWord
    Event Menu
    Command AmigaDOS antiword -r -s -m 8859-2.txt %sp *>NIL:
    End
    End



    I dont understand how this filetype can match the file type !

    Is it not needed to add a
    "match #?.doc" command?
  • »31.08.06 - 15:02
    Profile