#51

DSP Programming using the xbios: an introduction

DrWatson's profile picture
Published in 
 · 13 Nov 2023
... st Bit 0 and it is zero then we are not free to receive data; similarly if we test Bit 1 and it is zero then we are not free to transmit data. For example, here is a piece of assembler code to send 512 bytes to the DSP (taken from the XBIOS): MOVE.W #512-1,D0 ; d0 = our counter Lab08: BTST #1,$FFFFA202.W ; ready to transmit? BEQ.S Lab08 ; bit 1 = 0? Not ready MOVE.B (A0)+,$FFFFA205.W ; send hi byte MOVE.B (A0)+,$FFFFA206.W ; send mid byte MOVE.B (A0)+,$FFFFA207.W ; send lo byte DBF D0,Lab08 ; loop ...

How to calculate sinewave values in 680x0

DrWatson's profile picture
Published in 
 · 10 Nov 2023
... rroring stuff, but I'm not sure. Furthermore I warn you: The code is very messy (sorry Seboz). ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :listing 2: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sin_gen: lea sin,A0 moveq #0,D6 lea 512*2+4(A0),A1 movea.l A0,A2 moveq #512/4-1,D7 sin_gen1: lea sin_fakdiv+16,A3 move.l D6,D5 moveq #7,D2 sin_gen2: move.w D2,D1 move.l D6,D3 sin_gen3: mulu.l D6,D4:D3 rol.l #8,D3 rol.l #8,D4 move.b D3,D4 move.l D4,D3 dbra D1,sin_gen3 divs.l -(A3),D3 add.l D3,D5 subq.w #2,D2 bcc.s sin_g ...

DSP M-Registers

DrWatson's profile picture
Published in 
 · 8 Nov 2023
... * useful when doing things like "twiddle factors" with FFTs. Interestingly(?), if we consider a setting where Nn = 1024, using reverse carry repeatedly with the following code: move #output_buffer,r1 move #0,r0 move #0,m0 ; select reverse-carry move #512,n0 ; our reverse carry "increment" do #100,rc_loop move r0,x:(r1)+ lua (r0)+n0,r0 nop ; wait for pipeline rc_loop: ... produces the following sequence: 0, 512, 256, 768, 128, 640 ... or in binary: 000000000 100000000 010000000 110000000 001000000 1 ...

APIS Volume 11, Number 4, April 1993

eZine's profile picture
Published in 
 · 3 Nov 2023
... iculture should get out to public schools and other educational institutions. Beekeepers have now joined the ranks of other occupations described by leaflets published by Chronicle Guidance Publications. Beekeepers is the title of a four-page brief (#518) from Chronicle. It provides an overview of what beekeepers are and a description of the work involved. These handouts and are made available to a number of places, including public schools, community colleges, employment agencies and libraries. If ...

Average Users Monthly Vol 1 Issue 1 - FILE 1

eZine's profile picture
Published in 
 · 27 Jul 2021
... an advantage every time. Further on in the magazine is a short text written by Bruce prior to the release of his book. It deals with the Steve Jackson Games raid and lawsuit. For further reading on this topic, please see Computer Underground Digests #510-516. In closing, I highly recommend reading this book, if only for the entertainment value. It isn't a 'how to' handbook for the would be 'hacker', it's a fair and unbiased account of the happenings during the arrests made a ...

Electric Dreams Volume 03 Issue 09

eZine's profile picture
Published in 
 · 1 Jan 2021
... to do his thing. I wandered outside to find a better place. A car pulled up and a woman got out, undressed and went to the bathroom right there in public, on the side of the road. Europeans are much less reserved than us, I think to myself. (960813) #513 BR EATING [A most common, basic and essential waking life activity, eating has to do with nutrition, maintenance, and growth. It is a source of pleasure and usually involves a social interaction setting. BK] *** Dream: Lunch and a Mugging by Nutcra ...

7A69 Issue 12

eZine's profile picture
Published in 
 · 30 Dec 2020
... B-&Q<4>E#?57R'/$M1@&HBL'+"XKJDP?*9%B$6^OEB&%:-(%THH. MZD*QG0','YB9N#!\'A'4Y2>S8D-$'-(7:YD7,]I;+5=-K<%%WPR'H6I%8#5U MK*6?4[1O!/6-G^Y:K09?%/7B(HK^^%M4>8NV]ES1NI'/V,6*J-AJ$',U8V$J M=,WP=BWLQ.HN:R]@[<06B])I<HXG.LE5;"![)&"G#51SZ6SOI";5NBL@.Z%Q MC`XJ0YJ9.K#0'YCHKK65D+J.0<%HZP@&203J[L(I\CU5NB?C#$80DF8VBJ)- METJ)2T==,^IXPDDE\W5+UEY;-/:-Z;ZW9:2FJX#=M#=4EQ#$/@VS=BVB3&R\ M#@EX.\)RO(@)F^W0@1>I7J`+CG2"S7^'0>L]%>F%W8"MUJTL.=['MO4ES'2B M*#FP+:YVP@-]""&]A`<"D&@H19!N@ ...

The mono emulator for the Atari computer

atari's profile picture
Published in 
 · 3 Dec 2020
... structions to copy MOVE.W #39,D0 ; Generate the code GENMOVE1: MOVE.L (A1),(A2)+ ; Copys 40 of - MOVE.W (A0)+,(A1)+ DBF D0,GENMOVE1 ; and MOVE.W (A2)+,(A1)+ ADDQ.L #4,A1 MOVE.W (A1),(A2)+ ; Move the RTS MOVE.L A2,D0 ; A2 = start of free memory ADD.L #512,D0 ; Force it to a 512 byte boundry AND.L #$FFFFFE00,D0 MOVE.L D0,$044E(A5) ; And that is the monochrome screen MOVE.L D0,MONO ; Set MONO MOVE.W #$0001,-(SP) ; Hardware to medium MOVE.L #-1,-(SP) MOVE.L #-1,-(SP) MOVE.W #5,-(SP) TRAP #14 ; Set medi ...

Atari: The Twist Scroll

atari's profile picture
Published in 
 · 2 Dec 2020
... a1) ADD.L #160,A1 DBF D0,FONTYDRAW3 move.w #7,d0 FONTYDRAW3b MOVE.W (A0)+,(a1) move.w (a0)+,8(a1) ADD.L #160,A1 DBF D0,FONTYDRAW3b MOVE.W #28,D0 MOVE.L FONTTYPE,A0 CLR.L D6 MOVE.B (A6)+,D6 SUB.B #32,D6 MULU #144,D6 ADD.L D6,A0 MOVE.L SCREEN,A1 add.l #5152,a1 FONTYDRAW4 MOVE.W (A0)+,D5 ADD.W D5,(A1) move.w (a0)+,8(a1) ADD.L #160,A1 DBF D0,FONTYDRAW4 move.w #7,d0 FONTYDRAW4b MOVE.W (A0)+,(a1) move.w (a0)+,8(a1) ADD.L #160,A1 DBF D0,FONTYDRAW4b MOVE.W #28,D0 MOVE.L FONTTYPE,A0 CLR.L D6 MOVE.B (A6)+,D6 ...
loading
Neperos cookies
This website uses cookies to store your preferences and improve the service. Cookies authorization will allow me and / or my partners to process personal data such as browsing behaviour.

By pressing OK you agree to the Terms of Service and acknowledge the Privacy Policy

By pressing REJECT you will be able to continue to use Neperos (like read articles or write comments) but some important cookies will not be set. This may affect certain features and functions of the platform.
OK
REJECT