Ensambler 16 Bit

Blitz3D Forums/Blitz3D Programming/Ensambler 16 Bit

gotelin(Posted 2004) [#1]
I have a ensambler code but I donīt know covert to Blitz.
Can you help me, please?

Thanks
For example:

L_040C:
mov di,0000h
mov cx,0600h
cld
rep movsb
pop di
pop si
ret
L_0418:
push si
push di
mov ah,00
mov ds:[0AF63h],ah
mov bx,0101h ;ds:[0F87h]
mov ax,0B00h
int 10h
mov si,0DDAAh
jmp L_040C


Caff(Posted 2004) [#2]
(Stops laughing)

You can't just convert assembler (not ensambler) to Blitz code...

It is better to just recreate what the assembler code does by writing the Blitz code from scratch.


Damien Sturdy(Posted 2004) [#3]
"ensambler" hehehehe MUuhahahahahaha.. MUHAHahahaha....

Sorry....

Much quicker to just rewrite whatever it does mate :)


GfK(Posted 2004) [#4]
Its easy. I converted it to Blitz code for you.







Print "ah"



semar(Posted 2004) [#5]
LOL @GfK


gotelin(Posted 2004) [#6]
GFK,

Can you help me in convert to Blitz?

Thanks


Damien Sturdy(Posted 2004) [#7]
Il add here that a huge chunk of assembler just wont be possible to even rewrite in blitz never mind converting...

blitz just doesnt have such low level access..

You may consider writing a DLL maybe...


jfk EO-11110(Posted 2004) [#8]
blitz does not allow to execute commands found in assembler, so it will not be possible. Assembler does execute Processor Commands directly. In Assebler you can for example redirect hardware interrupts, that's not possible in Blitz. Why don't you tell us, what the assembler program is for, so we can tell you if it can be done in blitz somehow at all.


GfK(Posted 2004) [#9]
GFK,

Can you help me in convert to Blitz?
No. It was a joke.