2
« on: August 31, 2018, 01:20:51 pm »
Hello gys,
I'd appreciate any help concerning how to use (modify) assembly script written in older QBasic 32-bit version.
(I have some basic experience w/ QB64 programming)
In particular, is it possible to call ituse it QB64 source program?
(I have WIN7 64-bit CPU)
When I tried:
REM $include: 'MyData.ASM'
I've got syntax error.
partial sample of the assembly file I have is listed bellow (*)
hanks in advance for a help!
Mir
Note: (*)
;DECLARE SUB VCOPY (SEG A#, SEG B#, BYVAL n%)
;nx1 nx1
;[a]=>
;
.model medium
.486
VCOPY proto fortran, avec:far ptr qword, bvec:far ptr qword, nn:word
.code
public VCOPY
VCOPY proc fortran, avec:far ptr qword, bvec:far ptr qword, nn:word
pusha ;ax,cx,dx,bx,sp,bp,si,di
push ds ;[a]=>
push es ;nx1 nx1
lds si,avec ;load avec addr
les di,bvec ;load bvec addr
mov cx,nn ;load counter
shl cx,1 ;2n=# dwords to move
cld ;clear dir flag
rep movsd ;move data
pop es
pop ds
popa ;
ret
VCOPY endp
end