Home » Archimedes archive » Acorn User » AU 1996-03 B.adf » Features » Vocabulary/Source/getnew
Vocabulary/Source/getnew
This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.
Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.
Tape/disk: | Home » Archimedes archive » Acorn User » AU 1996-03 B.adf » Features |
Filename: | Vocabulary/Source/getnew |
Read OK: | ✔ |
File size: | 028D bytes |
Load address: | 0000 |
Exec address: | 0000 |
File contents
#include "inc.h" extern dbox edit; extern dbox wrong; extern char german[170][40]; extern char english[170][40]; extern char wrong_word_english[170][40]; extern char wrong_word_german[170][40]; extern int addon1; extern int addon2; extern char title[70]; extern char subtitle[70]; extern char language[70]; extern void get_new_n(void); void getnew_edit(void) { int ze= 10; while (ze<19) { dbox_getfield(edit,ze,english[ze-10+addon1],30); ze++; } while (ze<28) { dbox_getfield(edit,ze,german[ze-19+addon1],30); ze++; } dbox_getfield(edit,30,title,50); dbox_getfield(edit,0,subtitle,50); dbox_getfield(edit,31,language,50); get_new_n(); }
00000000 23 69 6e 63 6c 75 64 65 20 22 69 6e 63 2e 68 22 |#include "inc.h"| 00000010 0a 0a 65 78 74 65 72 6e 20 64 62 6f 78 20 65 64 |..extern dbox ed| 00000020 69 74 3b 0a 65 78 74 65 72 6e 20 64 62 6f 78 20 |it;.extern dbox | 00000030 77 72 6f 6e 67 3b 0a 65 78 74 65 72 6e 20 63 68 |wrong;.extern ch| 00000040 61 72 20 67 65 72 6d 61 6e 5b 31 37 30 5d 5b 34 |ar german[170][4| 00000050 30 5d 3b 0a 65 78 74 65 72 6e 20 63 68 61 72 20 |0];.extern char | 00000060 65 6e 67 6c 69 73 68 5b 31 37 30 5d 5b 34 30 5d |english[170][40]| 00000070 3b 0a 65 78 74 65 72 6e 20 63 68 61 72 20 77 72 |;.extern char wr| 00000080 6f 6e 67 5f 77 6f 72 64 5f 65 6e 67 6c 69 73 68 |ong_word_english| 00000090 5b 31 37 30 5d 5b 34 30 5d 3b 0a 65 78 74 65 72 |[170][40];.exter| 000000a0 6e 20 63 68 61 72 20 77 72 6f 6e 67 5f 77 6f 72 |n char wrong_wor| 000000b0 64 5f 67 65 72 6d 61 6e 5b 31 37 30 5d 5b 34 30 |d_german[170][40| 000000c0 5d 3b 0a 65 78 74 65 72 6e 20 69 6e 74 20 61 64 |];.extern int ad| 000000d0 64 6f 6e 31 3b 0a 65 78 74 65 72 6e 20 69 6e 74 |don1;.extern int| 000000e0 20 61 64 64 6f 6e 32 3b 0a 65 78 74 65 72 6e 20 | addon2;.extern | 000000f0 63 68 61 72 20 74 69 74 6c 65 5b 37 30 5d 3b 0a |char title[70];.| 00000100 65 78 74 65 72 6e 20 63 68 61 72 20 73 75 62 74 |extern char subt| 00000110 69 74 6c 65 5b 37 30 5d 3b 0a 65 78 74 65 72 6e |itle[70];.extern| 00000120 20 63 68 61 72 20 6c 61 6e 67 75 61 67 65 5b 37 | char language[7| 00000130 30 5d 3b 0a 65 78 74 65 72 6e 20 76 6f 69 64 20 |0];.extern void | 00000140 67 65 74 5f 6e 65 77 5f 6e 28 76 6f 69 64 29 3b |get_new_n(void);| 00000150 0a 0a 0a 0a 0a 0a 0a 76 6f 69 64 20 67 65 74 6e |.......void getn| 00000160 65 77 5f 65 64 69 74 28 76 6f 69 64 29 0a 7b 0a |ew_edit(void).{.| 00000170 69 6e 74 20 7a 65 3d 20 31 30 3b 0a 0a 77 68 69 |int ze= 10;..whi| 00000180 6c 65 20 28 7a 65 3c 31 39 29 0a 7b 0a 64 62 6f |le (ze<19).{.dbo| 00000190 78 5f 67 65 74 66 69 65 6c 64 28 65 64 69 74 2c |x_getfield(edit,| 000001a0 7a 65 2c 65 6e 67 6c 69 73 68 5b 7a 65 2d 31 30 |ze,english[ze-10| 000001b0 2b 61 64 64 6f 6e 31 5d 2c 33 30 29 3b 0a 7a 65 |+addon1],30);.ze| 000001c0 2b 2b 3b 0a 0a 7d 0a 0a 77 68 69 6c 65 20 28 7a |++;..}..while (z| 000001d0 65 3c 32 38 29 0a 7b 0a 64 62 6f 78 5f 67 65 74 |e<28).{.dbox_get| 000001e0 66 69 65 6c 64 28 65 64 69 74 2c 7a 65 2c 67 65 |field(edit,ze,ge| 000001f0 72 6d 61 6e 5b 7a 65 2d 31 39 2b 61 64 64 6f 6e |rman[ze-19+addon| 00000200 31 5d 2c 33 30 29 3b 0a 7a 65 2b 2b 3b 0a 7d 0a |1],30);.ze++;.}.| 00000210 0a 64 62 6f 78 5f 67 65 74 66 69 65 6c 64 28 65 |.dbox_getfield(e| 00000220 64 69 74 2c 33 30 2c 74 69 74 6c 65 2c 35 30 29 |dit,30,title,50)| 00000230 3b 0a 64 62 6f 78 5f 67 65 74 66 69 65 6c 64 28 |;.dbox_getfield(| 00000240 65 64 69 74 2c 30 2c 73 75 62 74 69 74 6c 65 2c |edit,0,subtitle,| 00000250 35 30 29 3b 0a 64 62 6f 78 5f 67 65 74 66 69 65 |50);.dbox_getfie| 00000260 6c 64 28 65 64 69 74 2c 33 31 2c 6c 61 6e 67 75 |ld(edit,31,langu| 00000270 61 67 65 2c 35 30 29 3b 0a 67 65 74 5f 6e 65 77 |age,50);.get_new| 00000280 5f 6e 28 29 3b 0a 7d 0a 0a 0a 0a 0a 0a |_n();.}......| 0000028d