Re: BethTool ?
From: Annie (annie_at_oal.com)
Date: 01/28/04
- Next message: Annie: "Re: BethTool ?"
- Previous message: Frank Kotler: "Re: LuxAsm Development Team"
- In reply to: The Half a Wannebee: "Re: BethTool ?"
- Next in thread: The Half A Wannabee: "Re: BethTool ?"
- Reply: The Half A Wannabee: "Re: BethTool ?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 28 Jan 2004 08:43:16 +0000 (UTC)
On 2004-01-27 ShakainZulu@hotmail.com (The Half a Wannebee) said:
> When I said "holes" I meant "bumps". But I was only told about it,
> and havent really studied it, like you seem to.
The English word for those "holes" or "bumps" is "pits."
> But besides the problems allready discussed, theres also the
> problems of plain dust. Dust and filth would fill theese bumps,
> would they not?
No. The pits are on the -inside- of the disk. A CD is constructed
in layers, like a sandwich: plastic, then metal, then more plastic.
Dust cannot get inside the disk's layers.
> Feel free to expand when you want to. Could of course do some
> research myself. Allthough it would be much more fun to have it
> come directly from you ;-)
Of course. I'm WAAAAYY more fun than Beth...except when she's
drinking alcohol. Hehe!
> AA> A Norski who doesn't eat lutefisk? Impossible!
>
> Just US tourists - (when were you the visiting last time Annie)?
_____
About 10 years ago. The older ((( `\
Norwegians ate lutefisk. But _ _`\ )
the younger Norwegians ate (^ ) )
McDonald's hamburgers. Hehehe! ~-( )
_'((,,,)))
Swedish 'pytt i panna' is very ,-' \_/ `\
good. I like lefse, too. ( , |
`-.-'`-.-'/|_|
Just to keep this post somewhat \ / | |
on-topic, here's some interesting =()=: / ,' aa
DOS code I found on the Web:
;
; BARS.ASM [ For DOS ]
; Simultaneously Displays 3 Animated Colored Bars
;
; Final version by Tylisha C. Andersen,
; with notable contributions by T. Remmel and J. Neil
;
; Hardware requirement: VGA or higher.
;
; Translated to A86 assembler syntax by Annie
;
code segment ; start of code segment
org 100h ; DOS .COM file
pop bx ; zero bx by popping the return address
m_1:
push bx ; write 3 positions and increments
inc bx ; the jpo instruction jumps when there are
push bx ; an odd number of set bits in the lower 8
jpo m_1 ; bits of the result; this is true for
; 1 (01b) and 2 (10b), but false for 3 (11b)
m_2:
cli ; disable interrupts
mov ah,8 ; ah = 8 for vertical retrace
mov cx,390 ; for each of 390 scanlines:
m_3:
mov dx,03DAh ; dx = IS1 port, wait for retrace
m_4:
in al,dx ; retrace could be vertical or horizontal
and al,ah ; due to the design of the VGA this ends in
jnz m_4 ; the horizontal retrace if ah = 01h, but in
m_5:
in al,dx ; the active vertical period if ah = 08h,
and al,ah ; which is exactly what we need
jz m_5
mov dl,0C8h ; dx = DAC write select port
xchg ax,bx ; al = 0, select DAC register 0
out dx,al
inc dx
mov si,sp ; si = ptr. to position data list
mov bl,3 ; for each of 3 colors:
m_6:
lodsw ; ax = increment - tricky use of loop,
loop m_7 ; jumps when cx <> 1 to test for last line
; if on last scanline, then
sub [si],ax ; add increment to position, if this puts it
cmp word ptr [si],-263 ; out of range, then bounce
ja m_7 ; 263 is the max. position of the top of a
neg word ptr [si-2] ; bar without it going off the screen
m_7:
inc cx ; restore cx (it was decremented by 'loop')
lodsw ; ax = position, si now = next color
add ax,cx ; ax = line + position
cmp ax,127 ; if it's not inside the bar, then set the
jbe m_8 ; color to 0 (xor al,al); otherwise...
xor al,al
m_8:
cmp al,64 ; if it's greater than 64, this means it's
jb m_9 ; on the top part where it is fading out, so
not al ; we negate it (the top 2 bits are ignored)
m_9:
out dx,al ; set color intensity, and loop (remember,
dec bx ; parity is only on the lower 8 bits, so it
jpo m_6 ; doesn't matter what bh contains)
;
mov ah,1 ; ah = 01h for horiz. retrace, key check
loop m_3 ; loop
int 16h ; check for key press (enables interrupts)
jz m_2 ; loop while no key pressed
mov ah,0 ; function 0 - get keypress
int 16h ; call ROM BIOS keyboard services
int 20h ; return to DOS
end
- Next message: Annie: "Re: BethTool ?"
- Previous message: Frank Kotler: "Re: LuxAsm Development Team"
- In reply to: The Half a Wannebee: "Re: BethTool ?"
- Next in thread: The Half A Wannabee: "Re: BethTool ?"
- Reply: The Half A Wannabee: "Re: BethTool ?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|