flat assembler
Message board for the users of flat assembler.

Index > Main > I need HELP!! :( :( :(

Author
Thread Post new topic Reply to topic
MS-Mischa



Joined: 03 Mar 2005
Posts: 10
MS-Mischa
Can you this SHIT translate! Wink
in VB???

mov ax, [c]
mov bx, 0x43*4
lds si, [ds:bx]
mul cl

THX! Wink
Post 03 Mar 2005, 04:24
View user's profile Send private message Reply with quote
Matrix



Joined: 04 Sep 2004
Posts: 1171
Location: Overflow
Matrix
hmm
why do i feel like to moderate you?
Post 03 Mar 2005, 06:30
View user's profile Send private message Visit poster's website Reply with quote
MS-Mischa



Joined: 03 Mar 2005
Posts: 10
MS-Mischa
I want to add another Fonts purely!
Post 03 Mar 2005, 06:40
View user's profile Send private message Reply with quote
Madis731



Joined: 25 Sep 2003
Posts: 2141
Location: Estonia
Madis731
I think he meant that he knows Visual Basic and to understand ASM, one could interpret this code into VB so he could pull reference "lines" between segments of code, so here it is:
Code:
mov ax,[c]
mov bx,010Ch
; You can't use segment here: lds se,[ds:bx]
lds cx,[bx]

;in VB:
dim ax,cx,c,se,ds as word ;something that is 2bytes long
dim bx(2)
ax=c ;There are no register in VB
bx(1)=#010CH ;I can't remember how that was done in VB Razz
bx(2)=#1234H
cx=bx(1)
ds=bx(2)
    

Hope I didn't make any mistakes - VB times are long gone for me Very Happy

P.S. HEY, I just made my PI*100 post (314)
Post 03 Mar 2005, 07:51
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger Reply with quote
MS-Mischa



Joined: 03 Mar 2005
Posts: 10
MS-Mischa
hmm shit! Sad

...

callp SetVmode, 0x13
callp PrintSYMBOL,1,1,1,0xf,0x0,symbol

....

proc SetVmode, n
begin
...
endp

PixelAddr: xchg ah,al
...
ret

proc PrintSYMBOL, c, x, y, fgd, bkgd, font
begin
pusha
mov ax, [y]
mov bx, [x]
call PixelAddr
mov di, bx

mov ax,[c]
mov bx,010Ch
????????????????????????????????
lds cx,[bx]

mul cl
add si, ax
mov cx, 8
....

popa
endp

...

symbol: db 00001000b, 00001000b, 00001000b, 00001000b, 00001000b, 00001000b, 00000100b, 00010000b
db 01111110b, 10000001b, 10100101b, 10000001b, 10111101b, 10011001b, 10000001b, 01111110b



PLZ, Help me!!!
what is frong?


Last edited by MS-Mischa on 04 Mar 2005, 02:57; edited 1 time in total
Post 03 Mar 2005, 09:14
View user's profile Send private message Reply with quote
MCD



Joined: 21 Aug 2004
Posts: 604
Location: Germany
MCD
Your code sounds very weird .fd:ASFt tr Confused It seems as you were trying to add some 16bit real mode code (for displaying some stuff) into this crappy 32bit virtualized, interpreted VB. I think the best way to handle your problem, is to completely rewrite your routines. Don't use such hard-coded stuff in winoff VB Rolling Eyes
Post 03 Mar 2005, 09:23
View user's profile Send private message Reply with quote
MS-Mischa



Joined: 03 Mar 2005
Posts: 10
MS-Mischa
I wrote a module for VB. Set pixels and set LINE do work with him, but this shit not work!! Sad
Post 03 Mar 2005, 09:28
View user's profile Send private message Reply with quote
MS-Mischa



Joined: 03 Mar 2005
Posts: 10
MS-Mischa
I think it am because of the address of SYMBOL!
Post 03 Mar 2005, 09:30
View user's profile Send private message Reply with quote
MCD



Joined: 21 Aug 2004
Posts: 604
Location: Germany
MCD
What Windows version do you use Visual Basic for? The code you posted here is only supposed to work in Real or Virtual 86 mode, which are both not supported at all for VB. Even less for modules. This kind of code is only useful for real mode DOS, OS developpers... Where did you get this code from?
Post 03 Mar 2005, 09:38
View user's profile Send private message Reply with quote
MS-Mischa



Joined: 03 Mar 2005
Posts: 10
MS-Mischa
NOT REALY!! i hava a windows3.11(RUS-Edition + some tools) Wink
(SORRY - this is not VB ->QB )
Post 03 Mar 2005, 09:43
View user's profile Send private message 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 cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on YouTube, Twitter.

Website powered by rwasa.