Skip to content
This repository was archived by the owner on Feb 28, 2023. It is now read-only.

Offsets #20

Merged
merged 5 commits into from
Nov 17, 2019
Merged

Offsets #20

merged 5 commits into from
Nov 17, 2019

Conversation

kspalaiologos
Copy link
Owner

Offsets are something that I've been asked for quite frequently. Now as the toolchain is more advanced, implementing them actually makes some more sense.

The main goal of offset's existence is simplifying to partition your memory eaisly. Creating offset is as simple as using seg with a number. An example program:

seg 5
db_ 2
inc r1
sto r1, 3
org 2
db_ 4

The memory contents:

Adress | 5 | 6 | 7 | 8 | 9 |
-------|---|---|---|---|---|
Value  | 2 | 3 | 4 | 0 | 0 |

@codecov-io
Copy link

codecov-io commented Nov 17, 2019

Codecov Report

Merging #20 into master will increase coverage by 0.08%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #20      +/-   ##
==========================================
+ Coverage   86.49%   86.58%   +0.08%     
==========================================
  Files           2        2              
  Lines         311      313       +2     
==========================================
+ Hits          269      271       +2     
  Misses         42       42
Impacted Files Coverage Δ
bfasm.c 96.13% <100%> (+0.03%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 73fdfb3...4e9cc01. Read the comment docs.

@kspalaiologos kspalaiologos merged commit 0a1328e into master Nov 17, 2019
@kspalaiologos kspalaiologos deleted the offset branch November 17, 2019 12:20
kspalaiologos added a commit that referenced this pull request Jan 17, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants