In a continuing series, I will be posting random dupes,cpu programs, and expressions in all my posts that don't get many views!!! SO tell all your friends to check my old posts every now and then!!! And oh yeah, it all works!!!
Code:
Start:;jmp Main_Code
define BlinkRate,2043//Definitions Are for setting memory addresses
define Color,000999
alloc Char_Pos
alloc Cursor_Pos
Startup:
db 'Boot initialized'
db '..............'
db 'Boot Complete! '
db 'Run_Opcode '
db 'List....Set '
db 'Shoes,Sneakers,Socks '
db 'Soles',0
Cursor_Code://Bugged
push eax
mov eax,Blinkrate;add eax,es;mov #eax,0.1
inc eax;mov #eax,0.1//Size
inc eax;mov #eax,#Cursor_Pos//2045 address
inc eax;mov #eax,1
pop eax
ret
WriteString://Esi is string Color is color//Confirmed Working
cmp #edi,0;
je Write_End
mov edx,#Char_Pos
mov #edx,#edi
inc edx
mov #edx,Color
inc edx
mov #Char_Pos,edx
inc edi
jmp WriteString
Write_End:
ret
Main_Code://Set es,Set message
mov es,esp
inc es
aMain_Code:
mov edi,Startup
add #Char_Pos,es
call WriteString
Bookmarks