Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
9
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Open sidebar
Over_score
WP43S
Commits
6685bbb9
Commit
6685bbb9
authored
Jan 23, 2021
by
Over_score
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '653-suggestion-for-a-second-access-to-ip' into 'master'
Second access to IP Closes
#653
See merge request
!869
parents
a4b69167
77f9d860
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
2 deletions
+13
-2
src/testSuite/integerPart.txt
src/testSuite/integerPart.txt
+1
-1
src/wp43s/bufferize.c
src/wp43s/bufferize.c
+8
-0
src/wp43s/defines.h
src/wp43s/defines.h
+2
-1
src/wp43s/mathematics/integerPart.c
src/wp43s/mathematics/integerPart.c
+2
-0
No files found.
src/testSuite/integerPart.txt
View file @
6685bbb9
...
...
@@ -57,7 +57,7 @@ Out: EC=24 FL_ASLIFT=0 RX=Stri:"String test"
; ip(Short Integer) --> Short Integer
;=======================================
In: FL_ASLIFT=0 FL_CPXRES=0 RX=ShoI:"5#7"
Out: EC=0 FL_CPXRES=0 FL_ASLIFT=1 RX=
Sho
I:"5
#7
"
Out: EC=0 FL_CPXRES=0 FL_ASLIFT=1 RX=
Lon
I:"5"
...
...
src/wp43s/bufferize.c
View file @
6685bbb9
...
...
@@ -276,6 +276,9 @@
tamOperation
=
item
;
tamTransitionSystem
(
TT_OPERATION
);
}
else
if
(
tamFunction
==
ITM_toINT
&&
item
==
ITM_REGI
)
{
//JM TO INT
tamTransitionSystem
(
TT_INT
);
}
else
if
(
tamFunction
==
ITM_toINT
&&
item
==
ITM_STACK_D
)
{
tamTransitionSystem
(
TT_BASE10
);
}
...
...
@@ -1263,6 +1266,11 @@
leaveTamMode
();
return
;
case
TT_INT
:
fnIp
(
NOPARAM
);
leaveTamMode
();
return
;
case
TT_BASE10
:
reallyRunFunction
(
getOperation
(),
10
);
leaveTamMode
();
...
...
src/wp43s/defines.h
View file @
6685bbb9
...
...
@@ -72,7 +72,8 @@
#define TT_BACKSPACE 7
#define TT_BASE10 8
#define TT_BASE16 9
#define TT_NOTHING 10
#define TT_INT 10
#define TT_NOTHING 11
#define DEBUG_LINES 68 // Used in for the debug panel
...
...
src/wp43s/mathematics/integerPart.c
View file @
6685bbb9
...
...
@@ -77,6 +77,8 @@ void ipRema(void) {
void
ipShoI
(
void
)
{
convertShortIntegerRegisterToLongIntegerRegister
(
REGISTER_X
,
REGISTER_X
);
lastIntegerBase
=
0
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment