[FEATURE] Add "Last X" support #2

Closed
opened 2024-02-13 10:20:34 +01:00 by marco · 0 comments
Owner

Add support to "Last X" feature, i.e. save top-of-stack on a separate register after any operation. For example:

5
4
+
# 4 is now saved on a separate memory register
l
# 4 is now pushed onto the stack
+
p
13

Additional features:

  • Add "Last Y" and "Last Z" support.

possible solution: wrap main stack into a class with a custom push_back method(or << overload) to add additional logic to the “add”process. The last X can be retrieved with a getter. The class can be generic(as well as the dc_stack_t type)

Add support to "Last X" feature, i.e. save top-of-stack on a separate register **after any operation**. For example: ``` 5 4 + # 4 is now saved on a separate memory register l # 4 is now pushed onto the stack + p 13 ``` Additional features: - Add "Last Y" and "Last Z" support. possible solution: wrap main stack into a class with a custom `push_back` method(or << overload) to add additional logic to the “add”process. The last X can be retrieved with a getter. The class can be generic(as well as the dc_stack_t type)
marco self-assigned this 2024-02-13 10:20:38 +01:00
marco closed this issue 2024-03-12 11:50:07 +01:00
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: marco/dc#2
No description provided.