Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

I really hate to be an asshole

Name: Anonymous 2012-08-01 16:02

But my code isn't working, and I can't tell why. I've rewritten the print function like, twice, and I can't see anything wrong. It's just printing a single character close to the right edge of the screen a couple lines down.
ASM, btw. Writing to VGA Text-mode VRAM.

http://pastebin.com/w0z1nJbF

Name: Anonymous 2012-08-01 16:05

Writing to VGA Text-mode VRAM.
What is this? 1987?

Name: Anonymous 2012-08-01 16:05

mov dx, 2
imul dx, ax                             ;double cursor position to get vram location


I just died a little inside.

Name: Anonymous 2012-08-01 16:07

In my defense this is what it's booting to, it's not running on top of any kind of operating system.

Name: Anonymous 2012-08-01 16:11

le shiggy face

Name: Anonymous 2012-08-01 16:47

No help whatsoever?

Name: Anonymous 2012-08-01 16:55

>>6
You don't deserve any help. Read the fucking documentation.

Name: Anonymous 2012-08-01 16:56

>>3
OHAHAHAHAHAHAHA

Name: Anonymous 2012-08-01 17:29

>>7
Read the documentation? I have. I understand how one writes to VRAM, that isn't the issue. The issue is that something's going wrong in the code itself. Are you retarded or something?

Name: Anonymous 2012-08-01 17:33

Oh, also, I should probably mention that this is just the print subroutine of a larger program.

Name: Anonymous 2012-08-01 17:41


mov dx, ax
add dx, ax


OPTIMIZED

Name: Anonymous 2012-08-01 18:13

>>11
Sorry, Jew, I can't read Hebrew.

Name: Anonymous 2012-08-01 18:27

>>11
mov es, 0xB800
mov word [es:2*ax], 0x0748

Name: Cudder !MhMRSATORI!fR8duoqGZdD/iE5 2012-08-02 5:53


 mov bx, cursor
 add bx, bx
 push 0xB800
 pop es
 mov w es:[bx], 0x0748
 inc w cursor


>>13
I don't think 2*ax is a valid addressing mode. Also debug.com is your friend.

Name: Anonymous 2012-08-02 6:46

>>14
http://en.m.wikipedia.org/wiki/X86#Addressing_modes
2*eax is valid, i don't see why 2*ax wouldn't be.

Name: Anonymous 2012-08-02 10:56

>>15
... en.m.wiki ...
You forgot to append "Sent from my iPandroid" to your message

Name: Anonymous 2012-08-02 11:09

>>16
Fuck you ``faggot''.

_________________
Sent from my Lemote Yeeloong.
GNU Emacs 23.4 — shiichan-mode

Name: Anonymous 2012-08-02 12:36

>>16
sorry about that.

Sent from my Windows 8

Name: Anonymous 2012-08-02 12:47

What the hell is cursor?

Name: Anonymous 2012-08-02 12:54

>>15
The very same document you linked to shows that that's not a valid 16-bit addressing mode.

Name: Anonymous 2012-08-02 13:09

>>20
All 32-bit x86 processors support 32-bit addressing modes in 16-bit code.

Name: Anonymous 2012-08-02 13:21

>>21
And? You don't use it unless you plan on being a massive faggot by requiring a 32-bit x86 processor for your 16-bit program.

Name: Anonymous 2012-08-02 13:37

>>22
le downgoated

Name: Anonymous 2012-08-02 14:21

>>22
requiring a 32-bit x86 processor for your 16-bit program.
Fuck you, gramps.

Name: Anonymous 2012-08-02 15:20

hey giuise my computer has a sticker in it that says AMD yet i can code x86 ASS-embly Just Fine wat GiveS??!????!?? and x86 appz w0rk juzt F1n3 0n 1T!!!!!!!!! BEIN SRS!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!IfYouReadThisMsgYouHaveNoScrollLock!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!AWES0mEASSDATASTRTUCTRIURAL

Name: Anonymous 2012-08-02 15:22

LOLOLOlol!oloLo!lo!lo!lo!l1!!!!!!! AMD IS X86!!!!!!!!!! LOL X86 MOAR LIEK X87!!!!!!! I AM ANUS!!!!!!!!! FUCK YO!uuuuu!u!!!!!!!!!!

Name: Anonymous 2012-08-02 15:24

I MASTURBATE MY PENIS FIFTY TIMES IN A ROW TO ENLARGE THE CAT TEMPLE OF ARTIFICIAL ZOMBIES
I MASTURBATE MY PENIS FIFTY TIMES AND I RETURN TO NOTHINGNESS
I RETURN TO NOTHINGNESS
WE RETURN TO NOTHINGNESS!!

Name: Anonymous 2012-08-02 15:34

>>11
Why wouldn't you just shr dx, 1

Name: Anonymous 2012-08-02 15:36

>>28
U MENA shl!

Name: Anonymous 2012-08-02 15:36

>>28
BECAUSE IT TOO GOOD
CODE BUTMUST BE SHITTY SOMEWHAT OR NO WORK FOR THE OPTIMIZERS OF THE CORPORATION AND GET NO MONEY SOSIETY COLLAPSE LOLZ

Name: Anonymous 2012-08-03 16:13

>>29
Yes. I did.

Don't change these.
Name: Email:
Entire Thread Thread List