flat assembler
Message board for the users of flat assembler.
Index
> MenuetOS > how virtual menuetOS interact with host OS? |
Author |
|
ProMiNick 05 Aug 2019, 15:03
makes db sequence from binary
Code: format binary as 'txt' db 'db ' file 'C:\FASM\fasmw.exe';:0,20 size = $-4 db size dup (0,0,0) dollar = '$' comma = ',' repeat size load c byte from size-%+4 l = c/16 h = c mod 16 if h>9 h = h + 'A' - 10 else h = h + '0' end if if l>9 l = l + 'A' - 10 else l = l + '0' end if w = l+ h shl 8 store byte dollar at (size+1-%)*4 store word w at (size+1-%)*4+1 store byte comma at (size+1-%)*4+3 end repeat db '?' rest only transfer resultive sequence between host machine & VM. and we can move files to and from menuet. due to simplicity of menuet text editor file should be splitted on lines (may be with addition linenumbers. But in case of transfer from real machine to menuet it is enought format. Left only find keyboard emulator. |
|||
05 Aug 2019, 15:03 |
|
ProMiNick 05 Aug 2019, 18:51
This output is more interesting ( if someone needed bintodb fasmcore interpreter algorithm):
Code: format binary as 'txt' dd 'db ' offs = $ itsz = $ file 'C:\FASM\fasmw.exe':0,300 size = $-offs db size dup (0,0,0) dollar = '$' comma = ',' linenums = size shr 4 dd linenums dup 0 repeat size idx = size-% row = idx shr 4 load c byte from idx+offs l = c/16 h = c mod 16 if h>9 h = h + 'A' - 10 else h = h + '0' end if if l>9 l = l + 'A' - 10 else l = l + '0' end if w = l+ h shl 8 store byte dollar at (idx + row)*itsz + offs-1 store word w at (idx + row)*itsz + offs if idx mod 16 < 15 store byte comma at (idx + row)*itsz + offs+2 else store word $0A0D at (idx + row + 1)*itsz + offs-2 store word 'db' at (idx + row + 1)*itsz + offs store byte ' ' at (idx + row + 1)*itsz + offs+2 end if end repeat db '?' output is Code: db $4D,$5A,$80,$00,$01,$00,$00,$00,$04,$00,$10,$00,$FF,$FF,$00,$00 db $40,$01,$00,$00,$00,$00,$00,$00,$40,$00,$00,$00,$00,$00,$00,$00 db $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00 db $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$80,$00,$00,$00 db $0E,$1F,$BA,$0E,$00,$B4,$09,$CD,$21,$B8,$01,$4C,$CD,$21,$54,$68 db $69,$73,$20,$70,$72,$6F,$67,$72,$61,$6D,$20,$63,$61,$6E,$6E,$6F db $74,$20,$62,$65,$20,$72,$75,$6E,$20,$69,$6E,$20,$44,$4F,$53,$20 db $6D,$6F,$64,$65,$2E,$0D,$0A,$24,$00,$00,$00,$00,$00,$00,$00,$00 db $50,$45,$00,$00,$4C,$01,$05,$00,$20,$67,$3B,$5C,$00,$00,$00,$00 db $00,$00,$00,$00,$E0,$00,$2F,$01,$0B,$01,$01,$49,$00,$2C,$02,$00 db $00,$3E,$00,$00,$00,$00,$00,$00,$DC,$08,$01,$00,$00,$C0,$00,$00 db $00,$10,$00,$00,$00,$00,$40,$00,$00,$10,$00,$00,$00,$02,$00,$00 db $01,$00,$00,$00,$00,$00,$00,$00,$04,$00,$00,$00,$00,$00,$00,$00 db $00,$40,$03,$00,$00,$04,$00,$00,$16,$CD,$02,$00,$02,$00,$00,$01 db $00,$00,$02,$00,$00,$10,$00,$00,$00,$00,$01,$00,$00,$00,$00,$00 db $00,$00,$00,$00,$10,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00 db $00,$00,$03,$00,$B0,$0E,$00,$00,$00,$10,$03,$00,$88,$23,$00,$00 db $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00 db $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00, ? last symbol is always "?" that is ignored in compilation. Code: store byte '?' at $-1 Code: db '?'
_________________ I don`t like to refer by "you" to one person. My soul requires acronim "thou" instead. |
||||||||||
05 Aug 2019, 18:51 |
|
ProMiNick 05 Aug 2019, 23:47
this post and its attachments were stupid. reason placed in square brackets in 1st post of this topic.
Last edited by ProMiNick on 08 Aug 2019, 14:22; edited 1 time in total |
|||
05 Aug 2019, 23:47 |
|
Ville 06 Aug 2019, 11:05
You can also move files between the host and Menuet using the internet connection (like ftp).
|
|||
06 Aug 2019, 11:05 |
|
ProMiNick 06 Aug 2019, 14:02
Ville, I not among happy owners of network cards that compatibable with menuet. (or additional setup needed). In case of Kolibri I set up network as bridge - and all work out of the box.
maybe for menuet needed additional setup. Thou not answered on half of question: can thou share fasm (menuet port) - there is no needance to keep it closed (and so ancient version) - it could be evolved with mainstream OS variations. And as thou see I almost explore way how menuet interact with host. That is open way to write programs in convinient environment (OS windows fo ex.) then transfer to menuet and can see what programm act and what to fix. Because developing in menuet itself (text editing) - is a bit painfull. |
|||
06 Aug 2019, 14:02 |
|
Ville 06 Aug 2019, 15:14
I'm talking about the network card in the virtual machine. You can connect to the virtual machine running Menuet from the host operating system using ftp, while Menuet is running the ftp server.
|
|||
06 Aug 2019, 15:14 |
|
ProMiNick 06 Aug 2019, 16:11
I never use VMWare from this side. I should setup something in VMware itself & in menuet & in ftp client for connection? Is any instruction?
Or it is simpler to do in VBox? |
|||
06 Aug 2019, 16:11 |
|
Ville 06 Aug 2019, 17:36
In the screenshot Im running Menuet inside Virtualbox v.5.0.0. and connecting to Menuet ftp server with Win7 command prompt. In VB, I'm using Intel pro/1000 virtual network card with bridged adapter setup.
|
||||||||||
06 Aug 2019, 17:36 |
|
ProMiNick 06 Aug 2019, 18:58
Looks like menuet not friends with VMware.
Looks like my WinXP64 don`t friend with VirtualBox 4 to 6 versions
_________________ I don`t like to refer by "you" to one person. My soul requires acronim "thou" instead. |
|||||||||||||||||||
06 Aug 2019, 18:58 |
|
MHajduk 06 Aug 2019, 20:42
ProMiNick wrote: Looks like menuet not friends with VMware. Have you tried to use shared folders in VMware Player? It works to me in case of FreeDOS (I enable shared folders only if I really need to copy some files between the host and the virtual machine, normally I disable it). These two pictures may illustrate the way it can be done: |
|||
06 Aug 2019, 20:42 |
|
ProMiNick 06 Aug 2019, 21:39
Villy, I look but not seen answer in front of my nose, but now everything more than enought to stark work on it.
Thanks. |
|||
06 Aug 2019, 21:39 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.