Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ADDR/BADDR #42

Closed
mgrossmann opened this issue Sep 17, 2019 · 1 comment
Closed

ADDR/BADDR #42

mgrossmann opened this issue Sep 17, 2019 · 1 comment
Labels
enhancement New feature or request

Comments

@mgrossmann
Copy link

To be compatible with the STORAGE() & BSTORAGE() BRexx/370 functions where STORAGE() mimics IBM’s Rexx370 utilizing hexadecimal addresses and BSTORAGE, the original STORAGE function in BRexx, I’d like to recommend BRexx/370 having an ADDR() & BADDR. ADDR() would function with hexadecimal addresses and BADDR() would function as the original with decimal addresses.

If:
a = “Hello” and a is located at decimal address 4096
then:
ADDR(‘a’) should return ‘1000’x
and:
BADDR(‘a’) from RxLib should return 4096

One (or 2) less data type conversions keeping one to less hair-pulling .

@mgrossmann mgrossmann added the analysis Must be analyzed. label Sep 17, 2019
@mgrossmann mgrossmann added this to the V2R2 milestone Sep 17, 2019
@mgrossmann mgrossmann removed this from the V2R2 milestone Oct 19, 2019
@mgrossmann mgrossmann added enhancement New feature or request and removed analysis Must be analyzed. labels Oct 19, 2019
@Peter-Jacob
Copy link

Peter-Jacob commented Jan 19, 2024

There are some new functions (PEEKx) which do the conversion:
PEEKS(decimal-address,length)
PEEKS returns the content (typically a string) of a main-storage address in a given length. The address must be in decimal
format.
PEEKS is a shortcut of STORAGE(d2x(decimal-address),length).
PEEKA(decimal-address)
PEEKA returns an address (4 bytes) stored at a given address. The address must be in decimal format.
PEEKA is a shortcut of STORAGE(d2x(decimal-address),4).
PEEKU(decimal-address)
PEEKU returns an unsigned integer stored at the given decimal address (4 bytes). The address must be in decimal format.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Done
Development

No branches or pull requests

2 participants