avatar
L Break Into Program @breakintoprogram.co.uk

Oh, I probably should explain the "no divides required" when there are two "/2"'s in the equations. In binary, a divide by two is the same as shifting right one bit, an easy operation in Z80. Similarly multiply by two is the same as shifting left one bit....

aug 24, 2025, 2:01 pm • 4 0

Replies

avatar
Computing and ICT in a Nutshell @advanced-ict.info

For anyone who'd like to try that... www.advanced-ict.info/interactive/...

aug 24, 2025, 2:04 pm • 1 0 • view
avatar
L Break Into Program @breakintoprogram.co.uk

Cool! I like that.

aug 24, 2025, 2:05 pm • 1 0 • view
avatar
Computing and ICT in a Nutshell @advanced-ict.info

There's a bitwise logic page too: www.advanced-ict.info/interactive/...

aug 24, 2025, 2:15 pm • 1 0 • view
avatar
L Break Into Program @breakintoprogram.co.uk

More specifically, multiplying or dividing a number (N) in a given base (B) by B is the same as shifting that number (N) left and right along its number columns. For example, multiplying 1234 by 10 in decimal.

Spreadsheet snippet Row 1: 10000, 1000, 100, 10, 1 Row 2: 1, 2, 3, 4 Row 3: 1, 2, 3, 4, 0
aug 24, 2025, 2:04 pm • 3 0 • view