Files
Eremey Valetov b3c6ec25db Preserve PRINT layout and Hollerith words with expanded oracle evidence
Retain the physical control column and buffer printer ink for overprinting.
Pack CALL literals into 36-bit BCD, blank-pad the final word and append the
all-ones terminator. Keep raw words through binary I/O for either dummy mode.

Expand the original-compiler corpus to carriage motion, numerical boundaries,
library routines, Hollerith memory and the CHM inversion. Preserve native
emulator disagreements and exact fingerprints of the remaining numerical
mismatches; strict comparison continues to fail them.
2026-11-20 18:49:35 -05:00

23 lines
689 B
C

#include "../src/ftn.h"
#include <assert.h>
#include <stdlib.h>
void ftn_rterror(const char *fmt, ...) {
(void)fmt;
abort();
}
int main(void) {
/* Octal words independently transcribed from the six-bit BCD table. */
assert(bcd_word("ABCDEF", 6) == 0212223242526ULL);
assert(bcd_word("abcdef", 6) == 0212223242526ULL);
assert(bcd_word("G", 1) == 0276060606060ULL);
assert(bcd_word("012345", 6) == 0000102030405ULL);
assert(bcd_word("6789+-", 6) == 0060710112040ULL);
assert(bcd_word(" .(),/", 6) == 0603374347361ULL);
assert(bcd_word("=$*", 3) == 0135354606060ULL);
assert(bcd_code('@') == -1);
assert(bcd_code(255) == -1);
return 0;
}