What happens when a programmer is bored

ry755

Well-Known Member
OP
Member
Joined
Nov 29, 2017
Messages
535
Trophies
1
Age
20
Location
California
XP
1,497
Country
United States
Code:
BITS 16
ORG 0x7C00
mov al, 72
mov ah, 0x0e
mov bh, 0x00
mov bl, 0x07
int 10h
mov al, 105
int 10h
mov al, 32
int 10h
mov al, 103
int 10h
mov al, 117
int 10h
mov al, 121
int 10h
mov al, 115
int 10h
mov al, 46
int 10h
mov al, 32
int 10h
mov al, 65
int 10h
mov al, 115
int 10h
mov al, 32
int 10h
mov al, 121
int 10h
mov al, 111
int 10h
mov al, 117
int 10h
mov al, 32
int 10h
mov al, 99
int 10h
mov al, 97
int 10h
mov al, 110
int 10h
mov al, 32
int 10h
mov al, 115
int 10h
mov al, 101
int 10h
mov al, 101
int 10h
mov al, 44
int 10h
mov al, 32
int 10h
mov al, 73
int 10h
mov al, 39
int 10h
mov al, 109
int 10h
mov al, 32
int 10h
mov al, 98
int 10h
mov al, 111
int 10h
mov al, 114
int 10h
mov al, 101
int 10h
mov al, 100
int 10h
mov al, 33
int 10h

jmp $

times 510-($-$$) db 0
dw 0xAA55

This took forever wtf
Send help

Btw this is real x86 Assembly, so if you compiled it with NASM and wrote it to the bootsector of a floppy disk, it would boot on a real computer
 
  • Like
Reactions: Megadriver94

Reiten

Well-Known Member
Newcomer
Joined
Feb 28, 2014
Messages
82
Trophies
1
XP
2,311
Country
Germany
If my guess, using my extremely rusty assembly knowledge, is correct you're printing 0.
But I'm a bit too lazy to try figuring out if it's an actual picture or something.
 

ry755

Well-Known Member
OP
Member
Joined
Nov 29, 2017
Messages
535
Trophies
1
Age
20
Location
California
XP
1,497
Country
United States
@Localhorst86 was right

It prints "Hi guys. As you can see, I'm bored!"

Of course, there's a much easier way to print text in asm, I just did it the hard way
 

Attachments

  • Screenshot from 2018-10-02 18-09-17.png
    Screenshot from 2018-10-02 18-09-17.png
    225.4 KB · Views: 184
  • Like
Reactions: Tizm

Site & Scene News

Popular threads in this forum

eof

General chit-chat
Help Users
    AncientBoi @ AncientBoi: Imma make quesadillas for lunch :D +1