Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Message

Re: Negarive numbers in .db statements

2012-03-21 by Don Kinzer

--- In AVR-Chat@yahoogroups.com, David VanHorn <microbrix@...> wrote:
>I need the distortion to be positive or negative..
I've never used avrasm before but I just tried this and it seems to work.

.equ SignBit = (0-1)
.equ Thing = 5
.db Thing,(Thing + (3*SignBit)), (Thing - (3*SignBit)), Thing

Don Kinzer
ZBasic Microcontrollers
http://www.zbasic.net

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.