flat assembler
Message board for the users of flat assembler.

flat assembler > MenuetOS > how virtual menuetOS interact with host OS?

Author
Thread Post new topic Reply to topic
ProMiNick



Joined: 24 Mar 2012
Posts: 356
Location: Russian Federation, Sochi
Hello, Ville.
Fasm(not OS itself) for menuetOS 32 & 64 is opensource or not? would thou share it. [I found how stupid was this request: binaries could be freely extracted from image with UltraISO or similar tools. In case of binaries maked in assembly - sources are not needed, disassembly more than enought - OS part is trivial other part is opensource by definition]

One more how in thour OS to create files? or move files between virtual & host machines?

I know one very unapplcable case - create text in text editor

Code:
virtual at 0
tmp::
include 'path' ; path to fasm for example
size = $
end virtual
db 'db '
repeat size
load c byte from tmp:%-1
a=c/100
b=(c mod 100)/10
c=c mod 10
db a+'0',b+'0',c+'0',','
end repeat
db '?'    

then text compiled with internal OS fasm - then print screen separatedly every piece that fit on a screen. Then OCR - then compile OCRed text back with fasm( or any assembler).
moving from host - is more painful...(or less)
In case of sending data to virtual OS from host OS we will need keyboard press emulator - it will read file in host OS in form "db ...." then setting cursor to opened text editor and play emulation sequence. then compiling in virtual OS.

So question is: When USB would be supported at level like it supported in Kolibri?
for interchanging file from host OS to virtual OS and back in way usual to all OS - by dragging files.

_________________
I don`t like to refer by "you" to one person.
My soul requires acronim "thou" instead.


Last edited by ProMiNick on 08 Aug 2019, 14:19; edited 1 time in total
Post 05 Aug 2019, 10:13
View user's profile Send private message Send e-mail Reply with quote
ProMiNick



Joined: 24 Mar 2012
Posts: 356
Location: Russian Federation, Sochi
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.
Post 05 Aug 2019, 15:03
View user's profile Send private message Send e-mail Reply with quote
ProMiNick



Joined: 24 Mar 2012
Posts: 356
Location: Russian Federation, Sochi
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     
even better then
Code:
db '?'    
on thour taste.


Description: "nu... kak to tak"
it is hard to code when nonletters are on nonproper keys. but possible.
Filesize: 124.38 KB
Viewed: 864 Time(s)

MenuetOS64-2019-08-06-01-01-21.png



_________________
I don`t like to refer by "you" to one person.
My soul requires acronim "thou" instead.
Post 05 Aug 2019, 18:51
View user's profile Send private message Send e-mail Reply with quote
ProMiNick



Joined: 24 Mar 2012
Posts: 356
Location: Russian Federation, Sochi
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
Post 05 Aug 2019, 23:47
View user's profile Send private message Send e-mail Reply with quote
Ville



Joined: 17 Jun 2003
Posts: 221
You can also move files between the host and Menuet using the internet connection (like ftp).
Post 06 Aug 2019, 11:05
View user's profile Send private message Reply with quote
ProMiNick



Joined: 24 Mar 2012
Posts: 356
Location: Russian Federation, Sochi
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.
Post 06 Aug 2019, 14:02
View user's profile Send private message Send e-mail Reply with quote
Ville



Joined: 17 Jun 2003
Posts: 221
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.
Post 06 Aug 2019, 15:14
View user's profile Send private message Reply with quote
ProMiNick



Joined: 24 Mar 2012
Posts: 356
Location: Russian Federation, Sochi
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?
Post 06 Aug 2019, 16:11
View user's profile Send private message Send e-mail Reply with quote
Ville



Joined: 17 Jun 2003
Posts: 221
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.


Description:
Filesize: 204.46 KB
Viewed: 809 Time(s)

scr.jpg


Post 06 Aug 2019, 17:36
View user's profile Send private message Reply with quote
ProMiNick



Joined: 24 Mar 2012
Posts: 356
Location: Russian Federation, Sochi
Looks like menuet not friends with VMware.

Looks like my WinXP64 don`t friend with VirtualBox 4 to 6 versions


Description: for start I tryed to use kolibri with ftp client.
I remember settings - and shutdown it
Filesize: 153.19 KB
Viewed: 796 Time(s)

ftp kolibri.JPG


Description: then I reproduce working settings in menuet.
closing active connection. reopening it.
and....
... and nothing
Filesize: 128.16 KB
Viewed: 796 Time(s)

ftp menuet.JPG



_________________
I don`t like to refer by "you" to one person.
My soul requires acronim "thou" instead.
Post 06 Aug 2019, 18:58
View user's profile Send private message Send e-mail Reply with quote
MHajduk



Joined: 30 Mar 2006
Posts: 6027
Location: Poland
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:

Image
Image
Post 06 Aug 2019, 20:42
View user's profile Send private message Visit poster's website Reply with quote
ProMiNick



Joined: 24 Mar 2012
Posts: 356
Location: Russian Federation, Sochi
Villy, I look but not seen answer in front of my nose, but now everything more than enought to stark work on it.
Thanks.
Post 06 Aug 2019, 21:39
View user's profile Send private message Send e-mail Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Copyright © 1999-2019, Tomasz Grysztar.

Powered by rwasa.