?
Storm.Xapek.de schrieb:
Mach doch einen von deinem Betriebssystem aus. Unter linux bei KDE z.B KSnapshot
PS: Wie sieht dein code aus. Meiner gibt immerwieder das ABC aus (ich weis nicht besonders einfallsreich):
;REAL MODE == 16 Bits
[BITS 16]
;Boot sector address
[ORG 0x7C00]
anfang:
mov al, 'a'
start: ;loop
;write
cmp al, 'z'
jz anfang
add al, 1
mov ah, 0Eh
mov bh, 0Fh
mov bl, 0
int 10h
;loop
jmp start
times 510-($-$$) db 0
dw 0AA55h
So kann ich natürlich auch scrennshots machen. Aber wenns es bocsh könnte, wäre es bequemer.
ps: Mein prog ist auch nicht einfallsreicher (AT&T syntax)
.arch i386
.code16
.section .data
.section .text
.global _start
_start:
call init_graphic_mode
call setpalette
movw $0xa000 , %ax
movw %ax , %es
xorw %di , %di
movw $320*200 , %cx
.loop1:
movb %bl , %al
stosb
inc %bx
loop .loop1
xorw %ax , %ax
movw $0x60 , %dx
here:
inb %dx , %al
cmpb $0x1 , %al
jne here
call init_text_mode
ret
###############################################
init_graphic_mode:
movw $0x0013 , %ax
int $0x10
ret
init_text_mode:
movw $0x0003 , %ax
int $0x10
ret
setpalette:
pusha
xorb %cl , %cl
.sp_loop1:
movw $0x3c8 , %dx
movb %cl , %al
outb %al , %dx
inc %dx
xorb %al , %al
outb %al , %dx
outb %al , %dx
movb %cl , %al
outb %al , %dx
cmpb $255 , %cl
inc %cx
jne .sp_loop1
popa
ret
.org 510
.short 0xaa55
Und so schaut das aus: SCREENSHOT