BS2sx v. BS2pe Memory Location for Current Bank
Archiver
Posts: 46,084
Does the BS2pe have a different memory location for the current bank
than BS2sx?
Ran Tracy Allen's TestSX from
http://www.emesystems.com/BS2SX.htm#example
It seems to work fine on by BS2pe except the bank number is always
being displayed a "0" instead of "1" and "2".
On the SX he does a
GET 63,i
Does the BS2pe use a different location from 63 to store this info?
Thanks!
Take care,
Frank
than BS2sx?
Ran Tracy Allen's TestSX from
http://www.emesystems.com/BS2SX.htm#example
It seems to work fine on by BS2pe except the bank number is always
being displayed a "0" instead of "1" and "2".
On the SX he does a
GET 63,i
Does the BS2pe use a different location from 63 to store this info?
Thanks!
Take care,
Frank
Comments
to indicate current bank (low nibble) and the bank last set by STORE for
READ and WRITE (high nibble).
Details are outlined in the Help file (see PUT or GET).
-- Jon Williams
-- Applications Engineer, Parallax
-- Dallas Office
Original Message
From: franksmith512 [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=r50QcLZAPkLpMSStz5xEBfuK4FgSnQ0iH9OVJn4ftoWj8jOpRp2gOJ6a1E3TneBM2Km4xO25_sRYpkshQHQ9_-FS]franksmith512@y...[/url
Sent: Sunday, December 14, 2003 5:20 PM
To: basicstamps@yahoogroups.com
Subject: [noparse][[/noparse]basicstamps] BS2sx v. BS2pe Memory Location for Current Bank
Does the BS2pe have a different memory location for the current bank
than BS2sx?
Ran Tracy Allen's TestSX from
http://www.emesystems.com/BS2SX.htm#example
It seems to work fine on by BS2pe except the bank number is always
being displayed a "0" instead of "1" and "2".
On the SX he does a
GET 63,i
Does the BS2pe use a different location from 63 to store this info?
Thanks!
Take care,
Frank
To UNSUBSCRIBE, just send mail to:
basicstamps-unsubscribe@yahoogroups.com
from the same email address that you subscribed. Text in the Subject
and Body of the message will be ignored.
Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/
This message has been scanned by WebShield. Please report SPAM to
abuse@p....
As Jon pointed out, that information can be read from SPRAM location
127 in the BS2p and BS2pe, and NIB0 is the currently RUNing bank and
NIB1 is the current STORE bank. (The BS2sx and BS2e do not have the
STORE command, so the high nib always reads zero.)
Also, SPRAM locations 128 to 135 contain read-only information in
the BS2p and 'pe. I have a quick list posted for my own reference at:
http://www.emesystems.com/BS2pe.htm#spram_specials
-- Tracy
>Does the BS2pe have a different memory location for the current bank
>than BS2sx?
>Ran Tracy Allen's TestSX from
>http://www.emesystems.com/BS2SX.htm#example
>It seems to work fine on by BS2pe except the bank number is always
>being displayed a "0" instead of "1" and "2".
>On the SX he does a
>GET 63,i
>Does the BS2pe use a different location from 63 to store this info?
>Thanks!
>Take care,
>Frank
processor:
#SELECT $STAMP
#CASE BS2
pgmSlot = 0
#CASE BS2E, BS2SX
READ 63, pgmSlot
#CASE BS2P, BS2PE
READ 127, pgmSlot
pgmSlot = pgmSlot.NIB0
#ENDSELECT
This code, of course, requires PBASIC 2.5 syntax selection.
-- Jon Williams
-- Applications Engineer, Parallax
-- Dallas Office
Original Message
From: Tracy Allen [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=ds9VyxZb9xC8_vyDBi060P8bM7UWgd9driGmJf9aBUYSMtyCzznolxq8sLXtWGb_3wDbT26oUg-N2nJLWW4]tracy@e...[/url
Sent: Sunday, December 14, 2003 8:20 PM
To: basicstamps@yahoogroups.com
Subject: Re: [noparse][[/noparse]basicstamps] BS2sx v. BS2pe Memory Location for Current
Bank
Hi Frank,
As Jon pointed out, that information can be read from SPRAM location
127 in the BS2p and BS2pe, and NIB0 is the currently RUNing bank and
NIB1 is the current STORE bank. (The BS2sx and BS2e do not have the
STORE command, so the high nib always reads zero.)
Also, SPRAM locations 128 to 135 contain read-only information in
the BS2p and 'pe. I have a quick list posted for my own reference at:
http://www.emesystems.com/BS2pe.htm#spram_specials
-- Tracy
>Does the BS2pe have a different memory location for the current bank
>than BS2sx? Ran Tracy Allen's TestSX from
>http://www.emesystems.com/BS2SX.htm#example
>It seems to work fine on by BS2pe except the bank number is always
>being displayed a "0" instead of "1" and "2".
>On the SX he does a
>GET 63,i
>Does the BS2pe use a different location from 63 to store this info?
>Thanks!
>Take care,
>Frank
To UNSUBSCRIBE, just send mail to:
basicstamps-unsubscribe@yahoogroups.com
from the same email address that you subscribed. Text in the Subject
and Body of the message will be ignored.
Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/
This message has been scanned by WebShield. Please report SPAM to
abuse@p....
Used your code right away. I modified it and am putting it up here.
I think a lot of people can use it.
pgmSlot VAR Byte
#SELECT $STAMP
#CASE BS2
pgmSlot = 0
#CASE BS2E, BS2SX
GET 63, pgmSlot
#CASE BS2P, BS2PE
GET 127, pgmSlot
pgmSlot = pgmSlot.NIB0
#ENDSELECT
I have had my Stamp just two weeks. Had no idea the multiple banks
existed. It sure provides lots of possibilities! Am already
restructuring my project.
Take care,
Frank
--- In basicstamps@yahoogroups.com, "Jon Williams" <jwilliams@p...>
wrote:
> Here's a method to determine which slot you're sitting in,
regardless of
> processor:
>
> #SELECT $STAMP
> #CASE BS2
> pgmSlot = 0
> #CASE BS2E, BS2SX
> READ 63, pgmSlot
> #CASE BS2P, BS2PE
> READ 127, pgmSlot
> pgmSlot = pgmSlot.NIB0
> #ENDSELECT
>
> This code, of course, requires PBASIC 2.5 syntax selection.
>
> -- Jon Williams
> -- Applications Engineer, Parallax
> -- Dallas Office
>
>
>
Original Message
> From: Tracy Allen [noparse][[/noparse]mailto:tracy@e...]
> Sent: Sunday, December 14, 2003 8:20 PM
> To: basicstamps@yahoogroups.com
> Subject: Re: [noparse][[/noparse]basicstamps] BS2sx v. BS2pe Memory Location for
Current
> Bank
>
>
> Hi Frank,
>
> As Jon pointed out, that information can be read from SPRAM
location
> 127 in the BS2p and BS2pe, and NIB0 is the currently RUNing bank
and
> NIB1 is the current STORE bank. (The BS2sx and BS2e do not have
the
> STORE command, so the high nib always reads zero.)
>
> Also, SPRAM locations 128 to 135 contain read-only information in
> the BS2p and 'pe. I have a quick list posted for my own reference
at:
> http://www.emesystems.com/BS2pe.htm#spram_specials
>
>
> -- Tracy
>
> >Does the BS2pe have a different memory location for the current
bank
> >than BS2sx? Ran Tracy Allen's TestSX from
> >http://www.emesystems.com/BS2SX.htm#example
> >It seems to work fine on by BS2pe except the bank number is always
> >being displayed a "0" instead of "1" and "2".
> >On the SX he does a
> >GET 63,i
> >Does the BS2pe use a different location from 63 to store this info?
> >Thanks!
> >Take care,
> >Frank
>
>
> To UNSUBSCRIBE, just send mail to:
> basicstamps-unsubscribe@yahoogroups.com
> from the same email address that you subscribed. Text in the
Subject
> and Body of the message will be ignored.
>
>
> Your use of Yahoo! Groups is subject to
> http://docs.yahoo.com/info/terms/
>
>
>
>
> This message has been scanned by WebShield. Please report SPAM to
> abuse@p...
GET to retrieve values from the Scratchpad RAM, not READ as in my
example.
-- Jon Williams
-- Parallax
Original Message
From: franksmith512 [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=BKvzUOo0RX-Mw0YpXuPxf49W9-Qy9zLPRDqGnWZFz0IopzlcFjI4kkKWhL8QPkvBO38iRAqx6OQZf-2JicP_xgQ]franksmith512@y...[/url
Sent: Monday, December 15, 2003 12:54 AM
To: basicstamps@yahoogroups.com
Subject: [noparse][[/noparse]basicstamps] Re: BS2sx v. BS2pe Memory Location for Current
Bank
Jon,
Used your code right away. I modified it and am putting it up here.
I think a lot of people can use it.
pgmSlot VAR Byte
#SELECT $STAMP
#CASE BS2
pgmSlot = 0
#CASE BS2E, BS2SX
GET 63, pgmSlot
#CASE BS2P, BS2PE
GET 127, pgmSlot
pgmSlot = pgmSlot.NIB0
#ENDSELECT
I have had my Stamp just two weeks. Had no idea the multiple banks
existed. It sure provides lots of possibilities! Am already
restructuring my project.
Take care,
Frank
--- In basicstamps@yahoogroups.com, "Jon Williams" <jwilliams@p...>
wrote:
> Here's a method to determine which slot you're sitting in,
regardless of
> processor:
>
> #SELECT $STAMP
> #CASE BS2
> pgmSlot = 0
> #CASE BS2E, BS2SX
> READ 63, pgmSlot
> #CASE BS2P, BS2PE
> READ 127, pgmSlot
> pgmSlot = pgmSlot.NIB0
> #ENDSELECT
>
> This code, of course, requires PBASIC 2.5 syntax selection.
>
> -- Jon Williams
> -- Applications Engineer, Parallax
> -- Dallas Office
>
>
>
Original Message
> From: Tracy Allen [noparse][[/noparse]mailto:tracy@e...]
> Sent: Sunday, December 14, 2003 8:20 PM
> To: basicstamps@yahoogroups.com
> Subject: Re: [noparse][[/noparse]basicstamps] BS2sx v. BS2pe Memory Location for
Current
> Bank
>
>
> Hi Frank,
>
> As Jon pointed out, that information can be read from SPRAM
location
> 127 in the BS2p and BS2pe, and NIB0 is the currently RUNing bank
and
> NIB1 is the current STORE bank. (The BS2sx and BS2e do not have
the
> STORE command, so the high nib always reads zero.)
>
> Also, SPRAM locations 128 to 135 contain read-only information in
> the BS2p and 'pe. I have a quick list posted for my own reference
at:
> http://www.emesystems.com/BS2pe.htm#spram_specials
>
>
> -- Tracy
>
> >Does the BS2pe have a different memory location for the current
bank
> >than BS2sx? Ran Tracy Allen's TestSX from
> >http://www.emesystems.com/BS2SX.htm#example
> >It seems to work fine on by BS2pe except the bank number is always
> >being displayed a "0" instead of "1" and "2". On the SX he does a
> >GET 63,i
> >Does the BS2pe use a different location from 63 to store this info?
> >Thanks!
> >Take care,
> >Frank
>
>
> To UNSUBSCRIBE, just send mail to:
> basicstamps-unsubscribe@yahoogroups.com
> from the same email address that you subscribed. Text in the
Subject
> and Body of the message will be ignored.
>
>
> Your use of Yahoo! Groups is subject to
> http://docs.yahoo.com/info/terms/
>
>
>
>
> This message has been scanned by WebShield. Please report SPAM to
> abuse@p...
To UNSUBSCRIBE, just send mail to:
basicstamps-unsubscribe@yahoogroups.com
from the same email address that you subscribed. Text in the Subject
and Body of the message will be ignored.
Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/
This message has been scanned by WebShield. Please report SPAM to
abuse@p....