News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Scrolling text

Started by hfheatherfox07, July 17, 2011, 02:29:01 AM

Previous topic - Next topic

hfheatherfox07

Hi I have about a million examples of ways to scroll text LOL  , I thought I have seen it all then I saw this:

M





§2->>> §1SOME TEXT SOME TEXT :§0

SOME TEXT SOME TEXT Microsoft Assembly coded program.
It use an advanced graphic engine, a sound module player
SOME TEXT.


§2->>> §1NFO CONTROL :

§3 Text controls =
   . §0Up or mouse wheel up§3
   . §0Down or mouse wheel up§3
   . §0Page Up§3
   . §0Page Down§3
   . §0Home§3
   . §0End

§3 Toggle autoscroll =
   . §0Space or mouse wheel click

§3 Invert scroll direction =
   . §0Delete


§2->>> §1SPECIAL THANKS :

§0To all §3assembly§0 coding owners.


§2->>> §1CONTACT :

§0Feel SOME TEXT SOME TEXT SOME TEXT SOME TEXT SOME TEXT
way to contact us.


§2->>> §4SOME THANKS YOU TO USE HIS PROGRAM.


it was in an .nfo file and that was uploaded onto the screen and scrolled, this I know how to do.....


my question is :

each §2->>> §1 represents a different color for the  text , how was this done , I have tried every thing....

this seems like it could be used in a bunch of things not just silly scrolling text

This is what the guy had in his code for macro's

.386
.model flat,stdcall
option casemap:none



include \masm32\include\windows.inc
include \masm32\include\user32.inc
include \masm32\include\gdi32.inc
include \masm32\include\kernel32.inc
include \masm32\include\masm32.inc

includelib \masm32\lib\user32.lib
includelib \masm32\lib\kernel32.lib
includelib \masm32\lib\gdi32.lib
includelib \masm32\lib\masm32.lib
INCLUDE \masm32\MACROS\MACROS.ASM

INCLUDE    \masm32\INCLUDE\oleaut32.inc
INCLUDELIB \masm32\LIB\oleaut32.lib

INCLUDE    \masm32\INCLUDE\ole32.inc
INCLUDELIB \masm32\LIB\ole32.lib


                unicode         macro page,string,zero
                                irpc c,<string>
                                db '&c', page
                                endm
                                ifnb <zero>
                                dw zero
                                endif
                endm



RGB macro red,green,blue
        xor eax,eax
        mov ah,blue
        shl eax,8
        mov ah,green
        mov al,red
endm