projects
/
YACASL2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
オブジェクトファイルの読込時、領域が足りない場合はすぐエラー201を発生
[YACASL2.git]
/
src
/
exec.c
diff --git
a/src/exec.c
b/src/exec.c
index
00cee8d
..
353dc24
100644
(file)
--- a/
src/exec.c
+++ b/
src/exec.c
@@
-1,6
+1,9
@@
#include "casl2.h"
#include "exec.h"
#include "casl2.h"
#include "exec.h"
+/* 実行モード: trace, logical, dump */
+EXECMODE execmode = {false, false, false};
+
/* 標準入力から文字データを読込(SVC 1) */
void svcin()
{
/* 標準入力から文字データを読込(SVC 1) */
void svcin()
{
@@
-149,7
+152,7
@@
WORD sla(WORD val0, WORD val1)
last = res & 0x4000;
res <<= 1;
}
last = res & 0x4000;
res <<= 1;
}
- res = sign |
res
;
+ res = sign |
(res & 0x7FFF)
;
/* OFに、レジスタから最後に送り出されたビットの値を設定 */
if(last > 0x0) {
FR += OF;
/* OFに、レジスタから最後に送り出されたビットの値を設定 */
if(last > 0x0) {
FR += OF;