net help with this macro

Ok this is a animation square by square and this is the frame to be printed


frame1 db 10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' '
db 10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' '
db 10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' '
db 10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' '
db 10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' '
db 0F0h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',80h, 'o',80h, ' ',80h, ' '
db 10h, ' ',0F0h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',80h, ' ',80h, ' ',80h, ' '
db 10h, ' ',10h, ' ',0F0h, ' ',20h, ' ',20h, ' ',20h, ' ',20h, ' ',20h, ' ',20h, ' ',10h, ' ',10h, ' ',10h, ' '
db 10h, ' ',10h, ' ',10h, ' ',20h, ' ',20h, ' ',20h, ' ',20h, ' ',20h, ' ',20h, ' ',10h, ' ',10h, ' ',10h, ' '
db 10h, ' ',10h, ' ',10h, ' ',20h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',20h, ' ',10h, ' ',10h, ' ',10h, ' '
db 10h, ' ',10h, ' ',10h, ' ',20h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',20h, ' ',10h, ' ',10h, ' ',10h, ' '
db 10h, ' ',10h, ' ',10h, ' ',60h, ' ',60h, ' ',10h, ' ',10h, ' ',10h, ' ',00h, ' ',00h, ' ',10h, ' ',10h, ' '

then i have to make a macro to print this frame in a 80 by 25 comand prompt window but it have to be printed centralized in the bottom of the page this is the macro that i have so far.


mPrintFrame macro frame
local firstLoop
local innerLoop
local endFirstLoop
local endInnerLoop
push bx
mov bx, 0
push si
mov si, 0
push cx
mov cx, 0Ch
push di
mov di, 0

firstLoop:
push cx
mov cx , 0Ch
innerLoop:
mov ah, frame[di]
add di, 1
mov al, frame[di]
add di, 1
mov es:[si], ax
add si, 2
loop innerLoop
endInnerLoop:
pop cx
add bx, 1
mov ax, 0A0h
mul bx
mov si, ax
loop firstLoop
endFirstLoop:

pop di
pop cx
pop si
pop bx
endm


If anyone can make the needed notification ill be more than please.
Answer ASAP!!!please

Comments

  • : Ok this is a animation square by square and this is the frame to be printed
    :
    :
    : frame1 db 10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' '
    : db 10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' '
    : db 10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' '
    : db 10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' '
    : db 10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' '
    : db 0F0h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',80h, 'o',80h, ' ',80h, ' '
    : db 10h, ' ',0F0h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',80h, ' ',80h, ' ',80h, ' '
    : db 10h, ' ',10h, ' ',0F0h, ' ',20h, ' ',20h, ' ',20h, ' ',20h, ' ',20h, ' ',20h, ' ',10h, ' ',10h, ' ',10h, ' '
    : db 10h, ' ',10h, ' ',10h, ' ',20h, ' ',20h, ' ',20h, ' ',20h, ' ',20h, ' ',20h, ' ',10h, ' ',10h, ' ',10h, ' '
    : db 10h, ' ',10h, ' ',10h, ' ',20h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',20h, ' ',10h, ' ',10h, ' ',10h, ' '
    : db 10h, ' ',10h, ' ',10h, ' ',20h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',20h, ' ',10h, ' ',10h, ' ',10h, ' '
    : db 10h, ' ',10h, ' ',10h, ' ',60h, ' ',60h, ' ',10h, ' ',10h, ' ',10h, ' ',00h, ' ',00h, ' ',10h, ' ',10h, ' '
    :
    : then i have to make a macro to print this frame in a 80 by 25 comand prompt window but it have to be printed centralized in the bottom of the page this is the macro that i have so far.
    :
    :
    : mPrintFrame macro frame
    : local firstLoop
    : local innerLoop
    : local endFirstLoop
    : local endInnerLoop
    : push bx
    : mov bx, 0
    : push si
    : mov si, 0
    : push cx
    : mov cx, 0Ch
    : push di
    : mov di, 0
    :
    : firstLoop:
    : push cx
    : mov cx , 0Ch
    : innerLoop:
    : mov ah, frame[di]
    : add di, 1
    : mov al, frame[di]
    : add di, 1
    : mov es:[si], ax
    : add si, 2
    : loop innerLoop
    : endInnerLoop:
    : pop cx
    : add bx, 1
    : mov ax, 0A0h
    : mul bx
    : mov si, ax
    : loop firstLoop
    : endFirstLoop:
    :
    : pop di
    : pop cx
    : pop si
    : pop bx
    : endm
    :
    :
    : If anyone can make the needed notification ill be more than please.
    : Answer ASAP!!!please
    :


    Anyone knows anything about it
  • : : Ok this is a animation square by square and this is the frame to be printed
    : :
    : :
    : : frame1 db 10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' '
    : : db 10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' '
    : : db 10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' '
    : : db 10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' '
    : : db 10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' '
    : : db 0F0h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',80h, 'o',80h, ' ',80h, ' '
    : : db 10h, ' ',0F0h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',80h, ' ',80h, ' ',80h, ' '
    : : db 10h, ' ',10h, ' ',0F0h, ' ',20h, ' ',20h, ' ',20h, ' ',20h, ' ',20h, ' ',20h, ' ',10h, ' ',10h, ' ',10h, ' '
    : : db 10h, ' ',10h, ' ',10h, ' ',20h, ' ',20h, ' ',20h, ' ',20h, ' ',20h, ' ',20h, ' ',10h, ' ',10h, ' ',10h, ' '
    : : db 10h, ' ',10h, ' ',10h, ' ',20h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',20h, ' ',10h, ' ',10h, ' ',10h, ' '
    : : db 10h, ' ',10h, ' ',10h, ' ',20h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',20h, ' ',10h, ' ',10h, ' ',10h, ' '
    : : db 10h, ' ',10h, ' ',10h, ' ',60h, ' ',60h, ' ',10h, ' ',10h, ' ',10h, ' ',00h, ' ',00h, ' ',10h, ' ',10h, ' '
    : :
    : : then i have to make a macro to print this frame in a 80 by 25 comand prompt window but it have to be printed centralized in the bottom of the page this is the macro that i have so far.
    : :
    : :
    : : mPrintFrame macro frame
    : : local firstLoop
    : : local innerLoop
    : : local endFirstLoop
    : : local endInnerLoop
    : : push bx
    : : mov bx, 0
    : : push si
    : : mov si, 0
    : : push cx
    : : mov cx, 0Ch
    : : push di
    : : mov di, 0
    : :
    : : firstLoop:
    : : push cx
    : : mov cx , 0Ch
    : : innerLoop:
    : : mov ah, frame[di]
    : : add di, 1
    : : mov al, frame[di]
    : : add di, 1
    : : mov es:[si], ax
    : : add si, 2
    : : loop innerLoop
    : : endInnerLoop:
    : : pop cx
    : : add bx, 1
    : : mov ax, 0A0h
    : : mul bx
    : : mov si, ax
    : : loop firstLoop
    : : endFirstLoop:
    : :
    : : pop di
    : : pop cx
    : : pop si
    : : pop bx
    : : endm
    : :
    : :
    : : If anyone can make the needed notification ill be more than please.
    : : Answer ASAP!!!please
    : :
    :
    :
    : Anyone knows anything about it
    :

    What notification?
  • : : : Ok this is a animation square by square and this is the frame to be printed
    : : :
    : : :
    : : : frame1 db 10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' '
    : : : db 10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' '
    : : : db 10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' '
    : : : db 10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' '
    : : : db 10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' '
    : : : db 0F0h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',80h, 'o',80h, ' ',80h, ' '
    : : : db 10h, ' ',0F0h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',80h, ' ',80h, ' ',80h, ' '
    : : : db 10h, ' ',10h, ' ',0F0h, ' ',20h, ' ',20h, ' ',20h, ' ',20h, ' ',20h, ' ',20h, ' ',10h, ' ',10h, ' ',10h, ' '
    : : : db 10h, ' ',10h, ' ',10h, ' ',20h, ' ',20h, ' ',20h, ' ',20h, ' ',20h, ' ',20h, ' ',10h, ' ',10h, ' ',10h, ' '
    : : : db 10h, ' ',10h, ' ',10h, ' ',20h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',20h, ' ',10h, ' ',10h, ' ',10h, ' '
    : : : db 10h, ' ',10h, ' ',10h, ' ',20h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',20h, ' ',10h, ' ',10h, ' ',10h, ' '
    : : : db 10h, ' ',10h, ' ',10h, ' ',60h, ' ',60h, ' ',10h, ' ',10h, ' ',10h, ' ',00h, ' ',00h, ' ',10h, ' ',10h, ' '
    : : :
    : : : then i have to make a macro to print this frame in a 80 by 25 comand prompt window but it have to be printed centralized in the bottom of the page this is the macro that i have so far.
    : : :
    : : :
    : : : mPrintFrame macro frame
    : : : local firstLoop
    : : : local innerLoop
    : : : local endFirstLoop
    : : : local endInnerLoop
    : : : push bx
    : : : mov bx, 0
    : : : push si
    : : : mov si, 0
    : : : push cx
    : : : mov cx, 0Ch
    : : : push di
    : : : mov di, 0
    : : :
    : : : firstLoop:
    : : : push cx
    : : : mov cx , 0Ch
    : : : innerLoop:
    : : : mov ah, frame[di]
    : : : add di, 1
    : : : mov al, frame[di]
    : : : add di, 1
    : : : mov es:[si], ax
    : : : add si, 2
    : : : loop innerLoop
    : : : endInnerLoop:
    : : : pop cx
    : : : add bx, 1
    : : : mov ax, 0A0h
    : : : mul bx
    : : : mov si, ax
    : : : loop firstLoop
    : : : endFirstLoop:
    : : :
    : : : pop di
    : : : pop cx
    : : : pop si
    : : : pop bx
    : : : endm
    : : :
    : : :
    : : : If anyone can make the needed notification ill be more than please.
    : : : Answer ASAP!!!please
    : : :
    : :
    : :
    : : Anyone knows anything about it
    : :
    :
    : What notification?
    :
    What i need is that this macro prints the frame centralized in the bottom of the comand prompt window

  • : : : : Ok this is a animation square by square and this is the frame to be printed
    : : : :
    : : : :
    : : : : frame1 db 10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' '
    : : : : db 10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' '
    : : : : db 10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' '
    : : : : db 10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' '
    : : : : db 10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' '
    : : : : db 0F0h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',80h, 'o',80h, ' ',80h, ' '
    : : : : db 10h, ' ',0F0h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',80h, ' ',80h, ' ',80h, ' '
    : : : : db 10h, ' ',10h, ' ',0F0h, ' ',20h, ' ',20h, ' ',20h, ' ',20h, ' ',20h, ' ',20h, ' ',10h, ' ',10h, ' ',10h, ' '
    : : : : db 10h, ' ',10h, ' ',10h, ' ',20h, ' ',20h, ' ',20h, ' ',20h, ' ',20h, ' ',20h, ' ',10h, ' ',10h, ' ',10h, ' '
    : : : : db 10h, ' ',10h, ' ',10h, ' ',20h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',20h, ' ',10h, ' ',10h, ' ',10h, ' '
    : : : : db 10h, ' ',10h, ' ',10h, ' ',20h, ' ',10h, ' ',10h, ' ',10h, ' ',10h, ' ',20h, ' ',10h, ' ',10h, ' ',10h, ' '
    : : : : db 10h, ' ',10h, ' ',10h, ' ',60h, ' ',60h, ' ',10h, ' ',10h, ' ',10h, ' ',00h, ' ',00h, ' ',10h, ' ',10h, ' '
    : : : :
    : : : : then i have to make a macro to print this frame in a 80 by 25 comand prompt window but it have to be printed centralized in the bottom of the page this is the macro that i have so far.
    : : : :
    : : : :
    : : : : mPrintFrame macro frame
    : : : : local firstLoop
    : : : : local innerLoop
    : : : : local endFirstLoop
    : : : : local endInnerLoop
    : : : : push bx
    : : : : mov bx, 0
    : : : : push si
    : : : : mov si, 0
    : : : : push cx
    : : : : mov cx, 0Ch
    : : : : push di
    : : : : mov di, 0
    : : : :
    : : : : firstLoop:
    : : : : push cx
    : : : : mov cx , 0Ch
    : : : : innerLoop:
    : : : : mov ah, frame[di]
    : : : : add di, 1
    : : : : mov al, frame[di]
    : : : : add di, 1
    : : : : mov es:[si], ax
    : : : : add si, 2
    : : : : loop innerLoop
    : : : : endInnerLoop:
    : : : : pop cx
    : : : : add bx, 1
    : : : : mov ax, 0A0h
    : : : : mul bx
    : : : : mov si, ax
    : : : : loop firstLoop
    : : : : endFirstLoop:
    : : : :
    : : : : pop di
    : : : : pop cx
    : : : : pop si
    : : : : pop bx
    : : : : endm
    : : : :
    : : : :
    : : : : If anyone can make the needed notification ill be more than please.
    : : : : Answer ASAP!!!please
    : : : :
    : : :
    : : :
    : : : Anyone knows anything about it
    : : :
    : :
    : : What notification?
    : :
    : What i need is that this macro prints the frame centralized in the bottom of the comand prompt window
    :
    :

    Well, to print centralised text, just pad with (screeenWidth-textLength)/2 spaces.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories