programming tools for Windows applications development
  Home  |   SwiftForth Archive  |   SwiftX Archive  |

Re: swiftx: 8051 gp bits

From: Leon Wagner <leon_at_forth.com>
Date: Fri, 26 Sep 2003 15:28:29 -0700

Section 2.7 of the SwiftX/8051 Target Reference Manual discusses bit
operations. If by "general purpose bits" you mean the internal RAM
locations that are bit addressable ($20-$2F), they are referenced in exactly
the same way as bit-addressable SFR's.

<reg> <bit>

<reg> is the bit-addressable register (memory location $20-$2F or SFR)
<bit> is the bit designator .0 thru .7

Examples:

ACC .7 IF

$20 .1 C MOV

> -----Original Message-----
> From: sftalk-bounce_at_forth.com [mailto:sftalk-bounce_at_forth.com]On Behalf
> Of chuck_at_sanna.com
> Sent: Friday, September 26, 2003 2:58 PM
> To: sftalk_at_forth.com
> Subject: [sftalk] swiftx: 8051 gp bits
>
>
> Hello,
>
> I'm unable to find any info in the docs or source for allocating and using
> general purpose bits in the 8051 product.
>
> I found the setb instruction, but the examples only applied to the special
> function registers, yet it is capable of setting the general purpose ones
> as well, I just don't know how to get the assembler or compiler to
> allocate them.
>
> Thanks,
>
> Chuck
>
>
>
> ----------------------------------------------------------------------
> sftalk_at_forth.com The SwiftForth programming discussion email list
> To unsubscribe, send subject "unsubscribe" to sftalk-request_at_forth.com
> For list command help, send subject "help" to sftalk-request_at_forth.com
> Message archives are located at http://www.forth.com/archive/sftalk
> ----------------------------------------------------------------------
> This list is a forum for SwiftForth users. For product support and bug
> reports, please send email to support_at_forth.com
> ----------------------------------------------------------------------
>
>

----------------------------------------------------------------------
sftalk_at_forth.com The SwiftForth programming discussion email list
To unsubscribe, send subject "unsubscribe" to sftalk-request_at_forth.com
For list command help, send subject "help" to sftalk-request_at_forth.com
Message archives are located at http://www.forth.com/archive/sftalk
----------------------------------------------------------------------
This list is a forum for SwiftForth users. For product support and bug
reports, please send email to support_at_forth.com
----------------------------------------------------------------------
Received on Fri Sep 26 2003 - 15:32:13 PDT

This archive was generated by hypermail 2.2.0 : Wed Jan 07 2009 - 03:04:10 PST