This commit is contained in:
matthias@arch 2022-12-05 14:40:59 +01:00
parent cea05e39c6
commit de0eda0b22

View File

@ -1,11 +1,13 @@
# Here is what I prompted OpenAI with to get day4-by-ai.c and day4-by-ai.s: # Here is what I prompted OpenAI with to get day4-by-ai.c and day4-by-ai.s:
consider a text file like this: consider a text file like this:
```
22-65,22-66 22-65,22-66
91-94,63-91 91-94,63-91
6-88,5-31 6-88,5-31
85-86,64-86 85-86,64-86
40-65,40-65 40-65,40-65
25-82,24-94 25-82,24-94
```
write an gnu-x86 assembly program that: write an gnu-x86 assembly program that:
- reads a text file like this line by line and count how often one of the two ranges contains the other. - reads a text file like this line by line and count how often one of the two ranges contains the other.