Article View: comp.sys.atari.st
Article #26882problems with rnd# from assembler
From: Guy Ridley
Date: Tue, 19 May 1987 00:06
Date: Tue, 19 May 1987 00:06
12 lines
1154 bytes
1154 bytes
Does anyone have some good documentation on calling trap #17 (the random number generator) from assembler? Acc'd to what I have the rnd# generator is reseeded when the machine is turned on, and calling trap #17 puts a random number in D0. However, what I seem to be getting (based on what note comes out of my synthesizer, to which the contents of D0 are sent via MIDI) is a lot of decimal "40"'s. This is completely mystifying, and the Assempro documentation doesn't say much more that "ST Internals" does. Can anyone send me a small sample of such a call that works? Also, I would like to communicate with others who are doing MIDI & Assembler. My synth is a DX-7.
Technical Details
Message-ID:
<2088@pbhya.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!mnetor!seismo!ll-xn!ames!ptsfa!pbhya!gdrShow Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!ll-xn!ames!ptsfa!pbhya!gdr From: gdr@pbhya.UUCP (Guy Ridley) Newsgroups: comp.sys.atari.st Subject: problems with rnd# from assembler Message-ID: <2088@pbhya.UUCP> Date: Mon, 18-May-87 20:06:25 EDT Article-I.D.: pbhya.2088 Posted: Mon May 18 20:06:25 1987 Date-Received: Tue, 19-May-87 06:19:42 EDT Organization: Pacific * Bell, San Ramon, CA Lines: 12 Keywords: midi/rnd#