besm6 / dispak Goto Github PK
View Code? Open in Web Editor NEWSimulator of DISPAK operating system (BESM-6)
License: GNU General Public License v2.0
Simulator of DISPAK operating system (BESM-6)
License: GNU General Public License v2.0
The build process is bitching about not being able to find aclocal-1.11, because my aclocal is 1.13.
I am seeing, that aclocal-1.11 (the version part) is [semi]hardcoded in aclocal.m4.
Is this the intention and how can I straighten this out?
The following program will result in a segmentation fault when the two marked lines are uncommented
шифр 419900зс5^
еев1а3
*name gost-10859
*assembler
*bemsh
inp$$$
main start 1
vtm '30000'(13)
*66 is
atx '10'(8)
* *66 is <--- uncomment to
* atx '10'(8) <--- cause a crash
printo extrd printo
vtm res(14)
its 14
vtm res+len-1(14)
its 14
vtm N(14)
its 14
vtm M(14)
its 14
vjm printo(13)
*74
N dc b'30'
M dc b'2'
is atx start
atx fin-1
atx
atx res
dc b'-1'
rep equ 2
start nop
dc (rep)b'7'
dc (rep)b'1'
dc (rep)b'5'
dc (rep)b'12'
dc (rep)b'6'
dc (rep)b'10'
dc (rep)b'3'
dc (rep)b'4'
dc (rep)b'2'
dc (rep)b'11'
fin nop
len equ fin-start
res dc (len)b'0'
fin
eoi$$$
trn$$$
0-0
end$$$
*main main
*execute
*end file
<6 ` characters>
еконец
cu.c:66:9: error: this ‘else’ clause does not guard... [-Werror=misleading-indentation]
66 | else
| ^~~~
cu.c:260:17: note: in expansion of macro ‘CHK_STACK’
260 | CHK_STACK;
| ^~~~~~~~~
cu.c:67:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘else’
67 | #define GET_OP {\
| ^~
68 | LOAD(enreg, XADDR(addr + reg[ui.i_reg]));\
|
cu.c:67:17: note: in definition of macro ‘GET_OP’
67 | #define GET_OP {\
| ^~
68 | LOAD(enreg, XADDR(addr + reg[ui.i_reg]));\
|
besmtool dump terminates its copy loop when it encounters a nonexistent zone. There are 2 issues with that:
besmtool list's idea of what is a disk file is too restrictive compared to that of the emulator.
It is sufficient to
echo -n DISK > 1234
for the emulator to view 1234 as a valid disk, while besmtool wouldn't recognize it as such.
The following program produces (using standard program 4) a nicely formatted code printout by default, and a corrupted one with -x
шифр 419900зс5^
еев1а3
*name gost-10859
*assembler
*no list
*no load list
program: ,name,
13,vtm,4096
,*66,adr
, ,4
,*74,
a1:,xta,a
,a/x,b
,a*x,c
,arx,=1
adr:, ,a1
, ,a1+2
a:,real,5.0
b:,real,6.0
c:,real,-7.0
,end ,
*execute
*end file
<6 ` characters>
еконец
На одной из Linux машин вылезла интересная вещь.
После запуска ./configure --prefix=некоторый_путь
, а затем сборки make
проходит компиляция и скачивание дисков.
Также успешно генерируются диски, но почему-то не всегда переносятся в этот --prefix по команде make install
в итоге dispak
работает, но выдает ошибку переполнения АУ.
Помог запуск его с помощью strace
для определения путей и подсовыванием дисков в $HOME/.besm6/
Может этот способ починки еще кому-то поможет.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.