The Novels

Economics 101, a Novel (Rough Draft) -- My first sustained attempt at a novel, two-thirds finished in rough draft, and heading a little too far south.
What would you do if you and your study partner, with whom you had been seriously discussing marriage, suddenly found yourselves all alone together on a desert island? Study economics?
Sociology 500, a Romance (Second Draft) -- The first book in the Economics 101 Trilogy.(On hold.)
Karel and Dan, former American football teammates and now graduate students, meet fellow graduate students Kristie and Bobbie, and the four form a steady study group.

Featured Post

Sociology 500, a Romance, ch 1 pt 1 -- Introducing Bobbie

TOC Well, let's meet Roberta Whitmer. Bobbie entered the anthropology department office and looked around. Near the receptionis...

Sunday, January 16, 2022

Backup: The Other OS-9, an Alternate Reality -- Calculations and Revelations

Current working version: https://joelrees-novels.blogspot.com/2022/01/the-other-os-9-alternate-reality-calculations.html.

Prologue/TOC

"Whoa, Mary, look who's here!" Jim said too loudly, pretend sotto voce. He, Roderick, and I were at our lab desk working on multi-byte addition in hand-written assembly.

Everybody looked at the door. I looked over at Jim instead, and he raised his hands with a grin, backing away on his stool.

"Hi guys."

I rolled my eyes and shook my head and turned to the door. "Hi, Beryl."

She came in and walked over, greeting Trina with a touch of the fingertips and a "Hi" on the way.

Roderick shifted over to an empty stool, and Beryl sat down by me.

"How was practice?" I asked.

"Good enough. Whacha doin'?" Beryl looked at the scratch paper where we had diagrammed what we understood of the problem and were writing tentative sequences of assembly language.

"Working out how to add big numbers," Roderick answered before I could.

"Bigger than what fits in the eight bits we showed you yesterday," I added.

She looked at the diagrams with a bit of interest, then shrugged. "Greek to me." 

Chuckles came from various directions. 

"Got time to wait while we test this?"

"Sure. If it's not more than half an hour."

Chuck looked up from where he and his group were helping Mister Forrest test the serial I/O board in the computer. "Can we let them try their code?" he asked.

Mr. Forrest nodded. "Time to take a break and see what we've figured out so far, anyway."

I looked at Jim and Roderick, and they both shook their heads. 

"Let's use your code," Jim said.

Todd moved an empty stool over for me and I sat down at their lab desk. Jim and Roderick stood at either side of me to watch while I used the front panel interface to toggle in the code. 

Beryl came over and stood behind me, resting her hands on my shoulders. I stopped working the switches long enough to give one hand a squeeze, deliberately squelching the nervous thrill that tried to course through me and stop my brain from working. I also ignored the murmurs around me. 

"So what are these numbers in real num -- uhm, decimal?"

"Decimal. 123,456,789 plus 987,654,321 equals --"

"One billion, one hundred eleven million, one hundred eleven thousand, one hundred ten," she finished for me.

More murmurs around us.

I turned and grinned at her. "And you pretend you don't know what we're doing here."

"Just arithmetic." She grinned back.

Chuckles and quiet groans. Trina snickered. "Genius attracts genius?"

Beryl turned and they exchanged finger waves.

I looked at the ceiling. "How am I supposed to respond to that?" I muttered, and looked back at the computer.

Beryl gave my shoulders a squeeze. My stomach jumped, ever so slightly.

"Okay, let's see if it flies." I stepped through, reading the input numbers and results aloud.

00010101 plus
10110001 equals
11000110

I checked the status register LEDs. "-- with no carry. Good," I breathed.

11001101 plus
01101000 equals
00110101

"-- again, with no carry. Okay," I nodded, cautious.

01011011 plus
11011110 equals
00111010,

The carry bit in the status register array of LEDs lit up. "-- with a carry. So far, so good. Okay," 

The carry, plus
00000111 plus
00111010 equals
01000010

And everybody clapped.

"Let's see your code." Mr. Forrest checked my work. "Lots of repeated instructions. That's faster than a loop, but it takes more program space, and we only have 4K that we know is working just yet. Try a loop?" 

"Well, that's what Jim is working on, but we weren't comfortable with where we put the loop count or with what happened to the carry while counting the loop."

"Let me see that, Jim." 

Jim handed Mr. Forrest his work, and he checked through it, nodded, and handed it back. "Want to give it a try?"

"No confidence."

"Results might be interesting?"

"I'm not sure I'd have any idea what went wrong."

"We can all think about it. Joe, write your code up on the board for everyone to look at. And Jim, you can write yours on the board next to Joe's. Try to line up instructions that do the same things."

Jim and I went to the board and put our code up. We consulted about what lined up where, and where I needed to leave empty lines so we could line things up.

"Still hesitant to try it, Jim?" Mr. Forrest asked.

Jim went back to our lab desk and looked through the summary of 8080 machine code instructions and their effects which Mr. Forrest had handed out for each lab group. He looked up and said, "It might work."

"Hot seat." Mr. Forrest indicated the stool I had been sitting on to use the computer.

"Do I get a back rub from Beryl?" Jim asked, with a wink at me. I grinned and looked at Beryl. 

She grinned back. "Oh, since you're Joey's lab partner, why not?"

Jim looked surprised, but pleased, and sat down. Beryl stood behind him and rubbed his shoulders, then gave them a hard squeeze.

"Ouch. Feels good!"

Everyone laughed.

JIm's code ran successfully, as well, and we all applauded.

"Okay, I'm thinking we can leave the teletype for tomorrow and just let the rest of you try your code, and then maybe I can get home by midnight tonight."

We all laughed.

After discussing the results we got with Jim and Roderick, I packed up my stuff and left with Beryl. We turned left out the door, and she slipped her left hand into my right.

At the first cross hall, I started to turn right and almost bumped into her. I corrected course quickly and followed her straight across. 

"This is the long way to the library." 

"My house tonight. Dad and Mom are home."

This time I couldn't squelch the butterflies in my stomach, and stopped.

Beryl looked up and back at me, challenging me. 

"Erm, okay." I started moving again, not quite feeling the faux granite floor under my tennis shoes. I couldn't say anything as we walked, Beryl gently but playfully swinging our hands between us. She was doing the swinging. My muscles wouldn't have obeyed me if I had tried.

"Cat got your tongue?" she asked playfully as we left the south wing. The fence wouldn't go up around the campus for another couple of years, and we headed unimpeded for the street where she lived, less than ten minutes away.

"The cat or the butterflies she's chasing."

She giggled. 

"Meeting your dad?"

"And Mom and Donna."

"Donna?"

"Kid sister."

"You've never told me about your family."

"You haven't told me much about yours. I remember you're the youngest and you have, what, four sisters?"

"And one brother."

"... and one brother." She paused, suddenly quiet. "My big brother died when I was kind of young."

"Oh." I didn't know what to say to that. "Sorry to hear about that."

"I miss him sometimes. But I think he's happy in heaven."

"That's a good hope to have. I believe in the afterlife, too."

"Yeah. Heaven's a good place."

We came too soon to her house, and her dad faced me at the front door. Her mother took Beryl's hand and pulled her in, hugging her closely.

"So. This is the Mormon boy that has been stalking my daughter for four years."

I couldn't tell if he was joking or not.

"Dad!"

"Yes, sir." I said, not cracking a smile.

"What about this polygamy thing? How many wives besides my daughter do you plan on marrying?"

"No, sir. Beryl and I have not discussed marriage in the first place. No plans about that at all at this time. And, in the second place, we Mormons don't do polygamy any more."

"Any more?" her mom asked.

"One of my great-grandfathers lost his wife on crossing the plains to Utah, and when he got to Utah he married a widow with six kids who lost her husband on the way. With the second wife's permission, he married a third woman."

"So why don't you do that any more?" her dad asked, in a tone that broached no nonsense.

"Well, there are several reasons. One is that God told us that, rather than go to war with all the people who thought that polygamy was a capital offense, polygamy would no longer be required of us."

"Required?" Beryl asked, puzzled.

"It was a different world. A single woman back then was looked on with suspicion and misunderstanding."

Her dad cleared his throat.

Beryl's puzzlement increased. "Huh?"

Beryl's mother hugged Beryl tighter, whispering something to her. 

Beryl's face drained color. She turned to her mother. "No!"

I continued, "Anyway, when polygamy worked well, it helped prevent the worst options. It didn't always work well, but the leaders of the Church were rather strict that a polygamous wife who felt that she was in a bad marriage could be released from the bad marriage and be free to seek someone better. In marriage. Without having to leave her children or her belongings behind."

Beryl's mom suddenly relaxed, and her dad's stern expression softened slightly.

I continued. "Unfortunately, the members with fundamentalist inclinations who sometimes leave us, leave us before they understand what polygamy was supposed to be. And that can cause some pretty abusive family situations for them. Which brings up a third reason we quit. By the end of the last century, too many of our regular members were beginning to practice it without understanding it."

Her dad and mom both relaxed at the same time. 

"Son," her dad said, "I've heard enough good about you from Beryl that I'm going to give you a chance to prove yourself."

I took a deep breath. "I hope you will not be offended that I won't be trying to prove myself. I always do my best to live a moral life and treat all people with respect, and I hope that will be good enough."

He grinned. "We'll see. We shall see. Well, come in so you and Beryl can study. That's what you came for, I think?"

"Yes, sir."

Donna was standing in the front room, watching the drama wide-eyed, and Beryl introduced us. The two of them exchanged looks and giggles and grins, and Donna dragged Beryl off into the kitchen to talk for a minute. 

While they were gone, I introduced myself to Karl and May, and they introduced themselves to me.

Then they came back, and Beryl dragged me over to the couch, where we sat, spread out our books on the coffee table, and dug in.

TV or Not TV (Typewriter)


Monday, January 10, 2022

Backup: The Other OS-9, an Alternate Reality

Current working version: https://joelrees-novels.blogspot.com/2022/01/the-other-os-9-alternate-reality.html.

Prologue, part I: 

God has told me not to look back at the things I have done wrong. He has not told me not to look back at things I haven't done wrong.

This story is something in the vein of the 33209 story, but with a simpler technology timeline than that. More like the one I laid out in this blogpost about the first OS-9: https://defining-computers.blogspot.com/2021/10/alternate-reality-early-microcomputer.html

I  think I'll use a simpler story and plot, as well, as well as the simpler technology roadmap. 

I'll go back to Japan almost immediately after my mission to chase Satomi, and end up meeting Chika while she is still in high school. And she will make herself obnoxious so that I have to invite her for a year of home-stay high school studies with my parents. And she will be one of the women who push me to develop my interest in the nascent microcomputer industry. 

And I'll have to push Jeff Raskin ahead on that text-based Apple IX in 1980 somehow. That's a tough one, but not nearly as tough as inventing reasons for Motorola to keep a double flagship market profile with the 68000 and 6809, and to evolve both more rapidly. 

In order to do that, and to clear up how the whole mess started, I guess I'll have to back up to my senior year in high school.

 

The Other OS-9
an Alternate Reality

by Joel Matthew Rees
Copyright 2022, Joel Matthew Rees


Prologue, part II:

Beryl looked over at me with puzzlement in her blue eyes. "The lights flash. I don't get it."

Jim snickered. 

I sighed and looked aside, searching the wall of the electronics lab for clues.

"Your eyes just turned green." Beryl smiled at me with a quiet laugh.

Roderick laughed out loud. "Mary, buddy, you're wasting Beryl's time looking at this Altair here."

"Shoosh!" Trina let out in exasperation. "No, he's not. Beryl's being patient, everyone just shut up and let Joe show Beryl what we're doing. Go ahead, Joe."

"Who's Merry?" Beryl asked me. "Oh. Wait. Marion. You."

I glanced at the ceiling and nodded. 

She frowned and turned to Roderick.

He backed off his stool, raising his hands in defense. "It's a nickname."

"Yeah," I laughed. "Only my best friends get to call me that." 

Roderick sat back down as Beryl turned back to query me silently, those blue eyes confusing me, as usual. I shrugged. She wrinkled her nose and her puzzled expression turned into a wry grin.

"Anyway, we start out putting forty-nine in the accumulator." I pointed at the hand written program listing again,

 3E 31    MVI A, 49 ; 00110001

and then used the microcomputer's front panel switches to set the starting address back to zero. "The shining LEDs are ones and dark LEDs are zeroes, and that was binary 0-0 1-1-0 0-0-1 on these lights here after it did the first instruction." I stepped into the first instruction and the lights that showed the accumulator value lit up again with the 00 110 001 pattern.

"You showed me how forty-nine decimal is that long string of ones and zeroes in base two. And for some reason," she pointed at the listing, "you write forty-nine after A, instead of before where it ought to be if it's going to be put in." 

"Intel's backwards assembler grammar," I shrugged apologetically.

Beryl shook her head. "I don't get it, but I'll play along."

"Yeah," Todd complained. "Play along. That's what we all do."

The students gathered around us broke out in laughter, and Mr. Forrest, our teacher, chuckled. 

She tilted her head. "And then you move the number from accumulator A to register B, right?" She put her finger on the next line.

 47    MOV B, A

I hit the step switch on the front panel. "Right. You're getting it."

"No I'm not." She pouted, then giggled.

Trina laughed. "That's the way, Beryl. Keep these guys in their place."

Beryl grinned and raised her elbow towards Trina, and they bumped elbows.

"And you move nineteen into the accumulator so I can see the pretty lights change," she continued.

She pointed at the listing,

 3E 13    MVI A, 19

And I stepped the instruction. "Yeah. Binary 00 011 001." The front panel showed the value in the accumulator output array.

"I guess I see that. Maybe. And you move it to register C to get it out of the way for some reason?" She pointed at the next line.

 4F    MOV C, A

"Pretty much exactly. I thought it would make it easier to watch."

"And then you move the forty-nine in B back to the accumulator for the same reason."

 78    MOV A, B

"Right." 

"And add the two numbers."

 81    ADD C

"Uh, huh."

"And stop so we can think about what the pretty lights say." She pointed to the last instruction.

 76    HLT

"And the result is binary," she read from the front panel, "01 000 100." She took a deep breath. "Which you showed me is sixty-eight."

Chuck showed her the conversion on his HP calculator again.

"Thanks, Chuck."

"Any time you want to look at my calculator, just ask."

"Careful!" Todd warned him. "Mary, I mean, Joe, might have something to say about that."

I gave Todd a look. "Last I checked I don't give orders to anyone in this room." I looked back at Beryl apologetically.

She wrinkled her forehead at me. "Thanks for the offer, anyway, Chuck." She didn't turn to look at him.

Some of the guys in the room started to give wolf whistles, but Mr. Forrest cleared his throat and they stopped.

"But I still don't see the point."

Mr. Forrest stood up. "Well, I think I've arranged for the university to loan us a teletype, and I got a package with the free software Tiny BASIC language interpreter on tape, so we might have something more interesting to look at in a couple of days."

"Thank you, Mr. Forrest. And thanks, everyone, for showing me what Joey gets all excited about."

"Whoa." Jack pulled his head back in mock horror. "Nobody gets to call him Joey."

I rolled my eyes and raised my hands to the sky in mock resignation as the guys in the class broke out in laughter again.

Beryl looked over and gave me a wry smile and a wrinkle of the nose. "Now are you going to help me with the political science homework?"

"Sure. Let's go."

The show over, the other students started to pack up, amid a buzz of conversation.

"Wait a minute, Joe. I have another announcement." Mr. Forrest stopped me.

We all quieted down.

"I have an opportunity to go to a microcomputer show in San Francisco, April 16th and 17th, and I can take a couple or three students with me. If more than three want to go, we'll have to figure out a way to choose who goes. Maybe a programming or electronics problem to solve. We can talk about that tomorrow, but anyone who's interested, please check with your parents tonight."

"Whoa, yeah."

"Alright!"

"Cool!"

"I'm in!"

Amid other excited responses there were a few less enthusiastic responses such as

"Count me out," 

as well.

Beryl looked at me with a question in her eyes as she picked up her books.

"Shoot yeah, I'm interested." I switched the power off on the microcomputer and picked up my sample program listing, slipping it back into my notebook, before picking up my own books. Then I stopped. "Oh. Wait."

She looked down quickly as she stood up. "Well, let's go study poli-sci," she said, disappointment tinging her voice.

I followed her out of the electronics lab into the hall. "That's when the cheering squad's year-end competition is, isn't it?"

"Never mind." She didn't turn back to look at me. "You need to go where you need to go."

She never let me bring the subject back up again.


Chapters:

  1. Calculations and Revelations
    To be written (tentative list):
  2. TV or Not TV (Typewriter)
  3. Faire Enough
  4. BASICally Proceed Forth
  5. Surveying the Field
  6. Sacrifice and Service
  7. Picking up Threads
  8. Rotating Media and Braun's Tube
  9. Unique OSses
  10. Splitting Their Stacks 
  11. Ken Thompson's Trusting Trust vs. Bootstrapping Your Own
  12. FM and Other Oriental Interests
  13. I Been Moved to PCs -- Microware, not MicroSoft
  14. A Piece of the Orient in Texas
  15. 2809 and 68010
  16. 68451 -- and Motorola Eats Their Own Dogfood
  17. Simulating Circuits and Automatic Layout
  18. Bounding Stacks and Other Segments
  19. 68RISC 
  20. Segments and Bounds -- 3XX09
  21. ... 
  22. Chikako on Her Mission, Marion in post-grad
  23. ...
  24. No Phishing
  25. ...
  26. Social Engineering
  27. Straits


Calculations and Revelations