Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - mirQB

Pages: [1]
1
Programs / Re: use of assembly script
« on: September 01, 2018, 04:54:38 am »
Thanks for a good advice Terry!  It looks like my best approach is to study how to use _MEME* commands.

2
Programs / use of assembly script
« 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

Pages: [1]