🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.asm
Article #1716

PC Speaker

#1716
From: piotrg
Date: Wed, 12 Mar 2008 18:12
51 lines
1556 bytes
Witam!
Mam pytanie odnośnie pc speakera mam projekt do zrobienie w asm i mam jedno
pytanie zrobiłem sobie procedurkę do grania głośniczkiem.
Oto ta procedura

mov al,10110110b

out 43h,al

mov al,169

out 42h,al

mov al,4

out 42h,al

in al,61h

or al,00000011b

out 61h,al

;mov cx,0fh

;mov dx,4240h

;mov ah,86h

;int 15h


in al,61h

and al,11111101b

out 61h,al

w sumie wzięta z książki ale niby speaker działa ale nie wyłacza się .

Odpalam w trybie chronionym pod dosem .

Jakieś pomysły ?

Wykomentowane linie wziąłem z kursu asm na dosa. ale one nic nie zmienają



Pozdro

piotrg
Technical Details
Message-ID: <fr96e8$58t$1@node2.news.atman.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!newsfeed.atman.pl!not-for-mail

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!newsfeed.atman.pl!not-for-mail
From: "piotrg" <piotrgrota@gmail.com>
Newsgroups: pl.comp.lang.asm
Subject: PC Speaker
Date: Wed, 12 Mar 2008 19:12:06 +0100
Organization: ATMAN
Lines: 54
Message-ID: <fr96e8$58t$1@node2.news.atman.pl>
NNTP-Posting-Host: chello089079154197.chello.pl
X-Trace: node2.news.atman.pl 1205345544 5405 89.79.154.197 (12 Mar 2008 18:12:24 GMT)
X-Complaints-To: usenet@atman.pl
NNTP-Posting-Date: Wed, 12 Mar 2008 18:12:24 +0000 (UTC)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198
X-RFC2646: Format=Flowed; Original
X-Antivirus: avast! (VPS 080311-0, 2008-03-11), Outbound message
X-Antivirus-Status: Clean
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit