DataMuseum.dk

Presents historical artifacts from the history of:

RC4000/8000/9000

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about RC4000/8000/9000

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - metrics - download

⟦52ee187f0⟧ TextFile

    Length: 768 (0x300)
    Types: TextFile
    Names: »negbasetx«

Derivation

└─⟦00964e8f7⟧ Bits:30007478 RC8000 Dump tape fra HCØ.
    └─⟦b2ec5d50f⟧ 
        └─⟦0f6e8048b⟧ »preditfile« 
            └─⟦this⟧ 

TextFile


\f



comment predit text           * page 15   11 02 80, 16.42
0 1 2 3 4 5 6 7 8 9 ;  

comment case 4, negbase;  
________________________

comment the programme converts a negative number to its
positive 2-complement in rc4000 integers;  

begin

  array     nmb(1:2);  
  integer   i;  
  long      j;  

  write(out, nl, 1);  
  for i := read_param(nmb) while i <> 0 do
  if i = 3 or i = 1 then
  begin
    j := - nmb(1);  
    write(out, <<-dd ddd ddd>, j, <:_->_:>, 
    ((extend 1) shift 24) + j, nl, 1);  
  end;  
end case 4, negbase;  
▶EOF◀