Computer recreations: core wars
In this video I show you a Python implementation of a 1984 article by A. K. Dewdney from the "Scientific American" magazine called "In the game called Core War hostile programs engage in a battle of bits".
Using a circular list and implementing at least two of the proposed operations, it's possible to execute basic programs in the Redcode programming language.
The user codes the language mnemonics in the main function of the program which are then translated into "machine code" and stored into the "core memory", i.e.: circular list. The simulator will then execute these instructions.
Links to the article:
- https://www.scientificamerican.com/article/computer-recreations-1984-05/
- https://people.scs.carleton.ca/~soma/biosec/readings/akdewdney/First.htm
Source code:
Wikipedia:
- https://en.wikipedia.org/wiki/Core_War
CHAPTERS
0:00 Intro
0:22 General overview of the article: history, programming language, operations
1:37 Circular array
2:00 Circular list in Python
2:10 Instruction pointer: keeps track of the execution
2:44 The Simulator class
3:11 Structure of the machine code
4:18 Addressing types
5:12 A 3-instruction program replicated from the article
5:55 Check the expected result of the program
6:16 The "Imp" program
6:57 Important methods of the Simulator class: transform human mnemonics to machine code and vice-versa, store and execute operations
8:17 The MOV operation
8:27 Script execution
9:32 Outtro
#computerrecreations #corewars #python
-
1:14:28
Man in America
15 hours ago🔴 LIVE: Leaked CCP Speech Reveals Plan to KILL 100M Americans
36.3K126 -
LIVE
Right Side Broadcasting Network
1 day agoLIVE REPLAY: President Trump Holds a Rally at Trump National in Doral, Florida - 7/9/24
4,521 watching -
1:26:23
Kim Iversen
7 hours agoDo Viruses Even Exist? This Doctor Says He Can Prove That They Don't.
67.7K311 -
1:37:47
Glenn Greenwald
8 hours agoBiden Administration Blames Russia for Age Concerns; Crackdowns on Israel's Critics Escalate in U.S.; Ukraine War Appears Permanent Ahead of NATO Summit | SYSTEM UPDATE #294
83.8K167 -
1:27:00
Laura Loomer
7 hours agoEP57: LIVE COVERAGE: Trump Rally in Miami, FL
54.4K18 -
2:29:30
WeAreChange
8 hours agoBiden WON'T Handle NUCLEAR FOOTBALL If War Breaks Out After 8 PM??
85.3K29 -
57:56
The StoneZONE with Roger Stone
9 hours agoWill Biden Declare A National Emergency To Cancel The 2024 Election? Pete Santilli | The StoneZONE
49K14 -
1:04:17
The Osbournes
21 hours agoOzzy’s Ultimate Dream Band | Fan Questions Answered
74K15 -
4:16:47
Drew Hernandez
14 hours agoWATCH PARTY: TRUMP RALLY DORAL FL
77.3K22 -
23:18
Winston Marshall
6 days ago“We Have Been Betrayed!” What’s Really Going On with Farage’s Reform UK Party
69.5K22