inputall.s 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469
  1. .file "inputall.pp"
  2. .text
  3. .align 4
  4. .globl _DONE_CB$PFL_OBJECT$LONGINT
  5. .type _DONE_CB$PFL_OBJECT$LONGINT,@function
  6. _DONE_CB$PFL_OBJECT$LONGINT:
  7. .globl done_cb
  8. .type done_cb,@function
  9. done_cb:
  10. pushl %ebp
  11. movl %esp,%ebp
  12. pushl $0
  13. call _SYSLINUX$$_HALT$BYTE
  14. leave
  15. ret $8
  16. .align 4
  17. .globl _INPUT_CB$PFL_OBJECT$LONGINT
  18. .type _INPUT_CB$PFL_OBJECT$LONGINT,@function
  19. _INPUT_CB$PFL_OBJECT$LONGINT:
  20. .globl input_cb
  21. .type input_cb,@function
  22. input_cb:
  23. pushl %ebp
  24. movl %esp,%ebp
  25. subl $532,%esp
  26. leal -8(%ebp),%eax
  27. pushl %eax
  28. leal -4(%ebp),%eax
  29. pushl %eax
  30. pushl 8(%ebp)
  31. call fl_get_input_cursorpos
  32. addl $12,%esp
  33. movl %eax,-12(%ebp)
  34. pushl $128
  35. leal -273(%ebp),%edi
  36. pushl %edi
  37. pushl $-1
  38. pushl -12(%ebp)
  39. call FPC_SHORTSTR_LONGINT
  40. leal -530(%ebp),%edi
  41. pushl %edi
  42. pushl $.L23
  43. pushl $255
  44. call FPC_SHORTSTR_COPY
  45. leal -530(%ebp),%edi
  46. pushl %edi
  47. leal -273(%ebp),%edi
  48. pushl %edi
  49. call FPC_SHORTSTR_CONCAT
  50. leal -530(%ebp),%edi
  51. pushl %edi
  52. pushl $.L24
  53. call FPC_SHORTSTR_CONCAT
  54. leal -141(%ebp),%edi
  55. pushl %edi
  56. leal -530(%ebp),%edi
  57. pushl %edi
  58. pushl $128
  59. call FPC_SHORTSTR_COPY
  60. pushl $128
  61. leal -273(%ebp),%edi
  62. pushl %edi
  63. pushl $-1
  64. pushl -4(%ebp)
  65. call FPC_SHORTSTR_LONGINT
  66. leal -530(%ebp),%edi
  67. pushl %edi
  68. leal -141(%ebp),%edi
  69. pushl %edi
  70. pushl $255
  71. call FPC_SHORTSTR_COPY
  72. leal -530(%ebp),%edi
  73. pushl %edi
  74. pushl $.L31
  75. call FPC_SHORTSTR_CONCAT
  76. leal -530(%ebp),%edi
  77. pushl %edi
  78. leal -273(%ebp),%edi
  79. pushl %edi
  80. call FPC_SHORTSTR_CONCAT
  81. leal -530(%ebp),%edi
  82. pushl %edi
  83. pushl $.L24
  84. call FPC_SHORTSTR_CONCAT
  85. leal -141(%ebp),%edi
  86. pushl %edi
  87. leal -530(%ebp),%edi
  88. pushl %edi
  89. pushl $128
  90. call FPC_SHORTSTR_COPY
  91. pushl $128
  92. leal -273(%ebp),%edi
  93. pushl %edi
  94. pushl $-1
  95. pushl -8(%ebp)
  96. call FPC_SHORTSTR_LONGINT
  97. leal -530(%ebp),%edi
  98. pushl %edi
  99. leal -141(%ebp),%edi
  100. pushl %edi
  101. pushl $255
  102. call FPC_SHORTSTR_COPY
  103. leal -530(%ebp),%edi
  104. pushl %edi
  105. pushl $.L38
  106. call FPC_SHORTSTR_CONCAT
  107. leal -530(%ebp),%edi
  108. pushl %edi
  109. leal -273(%ebp),%edi
  110. pushl %edi
  111. call FPC_SHORTSTR_CONCAT
  112. leal -530(%ebp),%edi
  113. pushl %edi
  114. pushl $.L39
  115. call FPC_SHORTSTR_CONCAT
  116. leal -141(%ebp),%edi
  117. pushl %edi
  118. leal -530(%ebp),%edi
  119. pushl %edi
  120. pushl $128
  121. call FPC_SHORTSTR_COPY
  122. leal -140(%ebp),%eax
  123. pushl %eax
  124. movl 8(%ebp),%eax
  125. movl (%eax),%eax
  126. movl (%eax),%eax
  127. pushl 16(%eax)
  128. call fl_set_object_label
  129. addl $8,%esp
  130. leave
  131. ret $8
  132. .align 4
  133. .globl _HIDE_SHOW_CB$PFL_OBJECT$LONGINT
  134. .type _HIDE_SHOW_CB$PFL_OBJECT$LONGINT,@function
  135. _HIDE_SHOW_CB$PFL_OBJECT$LONGINT:
  136. .globl hide_show_cb
  137. .type hide_show_cb,@function
  138. hide_show_cb:
  139. pushl %ebp
  140. movl %esp,%ebp
  141. subl $4,%esp
  142. movl 8(%ebp),%eax
  143. movl (%eax),%eax
  144. movl (%eax),%edi
  145. movl %edi,-4(%ebp)
  146. movl -4(%ebp),%eax
  147. movl 12(%eax),%eax
  148. movl 188(%eax),%eax
  149. testl %eax,%eax
  150. jne .L48
  151. jmp .L49
  152. .L48:
  153. movl -4(%ebp),%eax
  154. pushl 12(%eax)
  155. call fl_hide_object
  156. popl %edi
  157. jmp .L52
  158. .L49:
  159. movl -4(%ebp),%eax
  160. pushl 12(%eax)
  161. call fl_show_object
  162. popl %edi
  163. .L52:
  164. leave
  165. ret $8
  166. .align 4
  167. .globl _CREATE_FORM_INPUT
  168. .type _CREATE_FORM_INPUT,@function
  169. _CREATE_FORM_INPUT:
  170. pushl %ebp
  171. movl %esp,%ebp
  172. subl $12,%esp
  173. pushl $20
  174. leal -12(%ebp),%edi
  175. pushl %edi
  176. call FPC_GETMEM
  177. movl -12(%ebp),%eax
  178. pushl %eax
  179. pushl $441
  180. pushl $441
  181. pushl $0
  182. call fl_bgn_form
  183. addl $12,%esp
  184. movl %eax,%edx
  185. popl %eax
  186. movl %edx,(%eax)
  187. leal .L69+1,%eax
  188. pushl %eax
  189. pushl $441
  190. pushl $441
  191. pushl $0
  192. pushl $0
  193. pushl $1
  194. call fl_add_box
  195. addl $24,%esp
  196. movl %eax,-8(%ebp)
  197. leal .L84+1,%eax
  198. pushl %eax
  199. pushl $30
  200. pushl $340
  201. pushl $40
  202. pushl $40
  203. pushl $0
  204. call fl_add_input
  205. addl $24,%esp
  206. movl %eax,-8(%ebp)
  207. movl -12(%ebp),%eax
  208. movl -8(%ebp),%edi
  209. movl %edi,8(%eax)
  210. pushl $5
  211. pushl -8(%ebp)
  212. call fl_set_object_lalign
  213. addl $8,%esp
  214. pushl $0
  215. leal _INPUT_CB$PFL_OBJECT$LONGINT,%eax
  216. pushl %eax
  217. pushl -8(%ebp)
  218. call fl_set_object_callback
  219. addl $12,%esp
  220. leal .L111+1,%eax
  221. pushl %eax
  222. pushl $30
  223. pushl $160
  224. pushl $100
  225. pushl $40
  226. pushl $2
  227. call fl_add_input
  228. addl $24,%esp
  229. movl %eax,-8(%ebp)
  230. pushl $5
  231. pushl -8(%ebp)
  232. call fl_set_object_lalign
  233. addl $8,%esp
  234. leal .L130+1,%eax
  235. pushl %eax
  236. pushl $30
  237. pushl $160
  238. pushl $100
  239. pushl $230
  240. pushl $1
  241. call fl_add_input
  242. addl $24,%esp
  243. movl %eax,-8(%ebp)
  244. pushl $5
  245. pushl -8(%ebp)
  246. call fl_set_object_lalign
  247. addl $8,%esp
  248. leal .L149+1,%eax
  249. pushl %eax
  250. pushl $30
  251. pushl $160
  252. pushl $150
  253. pushl $40
  254. pushl $3
  255. call fl_add_input
  256. addl $24,%esp
  257. movl %eax,-8(%ebp)
  258. pushl $5
  259. pushl -8(%ebp)
  260. call fl_set_object_lalign
  261. addl $8,%esp
  262. leal .L168+1,%eax
  263. pushl %eax
  264. pushl $30
  265. pushl $160
  266. pushl $150
  267. pushl $230
  268. pushl $6
  269. call fl_add_input
  270. addl $24,%esp
  271. movl %eax,-8(%ebp)
  272. pushl $5
  273. pushl -8(%ebp)
  274. call fl_set_object_lalign
  275. addl $8,%esp
  276. leal .L187+1,%eax
  277. pushl %eax
  278. pushl $180
  279. pushl $360
  280. pushl $210
  281. pushl $40
  282. pushl $4
  283. call fl_add_input
  284. addl $24,%esp
  285. movl %eax,-8(%ebp)
  286. movl -12(%ebp),%eax
  287. movl -8(%ebp),%edi
  288. movl %edi,12(%eax)
  289. pushl $0
  290. leal _INPUT_CB$PFL_OBJECT$LONGINT,%eax
  291. pushl %eax
  292. pushl -8(%ebp)
  293. call fl_set_object_callback
  294. addl $12,%esp
  295. leal .L69+1,%eax
  296. pushl %eax
  297. pushl $30
  298. pushl $210
  299. pushl $400
  300. pushl $30
  301. pushl $0
  302. call fl_add_text
  303. addl $24,%esp
  304. movl %eax,-8(%ebp)
  305. movl -12(%ebp),%eax
  306. movl -8(%ebp),%edi
  307. movl %edi,16(%eax)
  308. pushl $8196
  309. pushl -8(%ebp)
  310. call fl_set_object_lalign
  311. addl $8,%esp
  312. leal .L230+1,%eax
  313. pushl %eax
  314. pushl $30
  315. pushl $70
  316. pushl $400
  317. pushl $330
  318. pushl $0
  319. call fl_add_button
  320. addl $24,%esp
  321. movl %eax,-8(%ebp)
  322. pushl $0
  323. leal _DONE_CB$PFL_OBJECT$LONGINT,%eax
  324. pushl %eax
  325. pushl -8(%ebp)
  326. call fl_set_object_callback
  327. addl $12,%esp
  328. leal .L251+1,%eax
  329. pushl %eax
  330. pushl $30
  331. pushl $70
  332. pushl $400
  333. pushl $250
  334. pushl $0
  335. call fl_add_button
  336. addl $24,%esp
  337. movl %eax,-8(%ebp)
  338. pushl $0
  339. leal _HIDE_SHOW_CB$PFL_OBJECT$LONGINT,%eax
  340. pushl %eax
  341. pushl -8(%ebp)
  342. call fl_set_object_callback
  343. addl $12,%esp
  344. call fl_end_form
  345. movl -12(%ebp),%eax
  346. movl (%eax),%eax
  347. movl -12(%ebp),%edi
  348. movl %edi,(%eax)
  349. movl -12(%ebp),%edi
  350. movl %edi,-4(%ebp)
  351. movl -4(%ebp),%eax
  352. leave
  353. ret
  354. .align 4
  355. .globl main
  356. .type main,@function
  357. main:
  358. .globl PASCALMAIN
  359. .type PASCALMAIN,@function
  360. PASCALMAIN:
  361. .globl program_init
  362. .type program_init,@function
  363. program_init:
  364. pushl %ebp
  365. movl %esp,%ebp
  366. call FPC_INITIALIZEUNITS
  367. pushl $0
  368. pushl $0
  369. leal .L69+1,%eax
  370. pushl %eax
  371. pushl U_SYSLINUX_ARGV
  372. leal U_SYSLINUX_ARGC,%eax
  373. pushl %eax
  374. call fl_initialize
  375. addl $20,%esp
  376. call _CREATE_FORM_INPUT
  377. movl %eax,_FD_INPUT
  378. pushl $1
  379. movl _FD_INPUT,%eax
  380. pushl 16(%eax)
  381. call fl_set_object_dblbuffer
  382. addl $8,%esp
  383. pushl $3
  384. movl _FD_INPUT,%eax
  385. pushl 12(%eax)
  386. call fl_set_object_return
  387. addl $8,%esp
  388. pushl $3
  389. movl _FD_INPUT,%eax
  390. pushl 8(%eax)
  391. call fl_set_object_return
  392. addl $8,%esp
  393. leal .L298+1,%eax
  394. pushl %eax
  395. pushl $1
  396. pushl $16386
  397. movl _FD_INPUT,%eax
  398. pushl (%eax)
  399. call fl_show_form
  400. addl $16,%esp
  401. jmp .L306
  402. .L305:
  403. .L306:
  404. call fl_do_forms
  405. cmpl $0,%eax
  406. jne .L305
  407. jmp .L307
  408. .L307:
  409. call FPC_DO_EXIT
  410. leave
  411. ret
  412. .data
  413. .ascii "FPC 0.99.11 for i386 - LINUX"
  414. .align 4
  415. .globl INITFINAL
  416. .type INITFINAL,@object
  417. INITFINAL:
  418. .long 3,0
  419. .long INIT$$SYSLINUX
  420. .long 0
  421. .long INIT$$OBJPAS
  422. .long 0
  423. .long INIT$$XLIB
  424. .long 0
  425. .globl HEAPSIZE
  426. .type HEAPSIZE,@object
  427. HEAPSIZE:
  428. .long 2097152
  429. .data
  430. .L23:
  431. .ascii "\004P = \000"
  432. .L24:
  433. .ascii "\001 \000"
  434. .L31:
  435. .ascii "\003x= \000"
  436. .L38:
  437. .ascii "\003y= \000"
  438. .L39:
  439. .ascii "\001\000\000"
  440. .L69:
  441. .ascii "\000\000"
  442. .L84:
  443. .ascii "\013NormalInput\000"
  444. .L111:
  445. .ascii "\010IntInput\000"
  446. .L130:
  447. .ascii "\012FloatInput\000"
  448. .L149:
  449. .ascii "\011DateInput\000"
  450. .L168:
  451. .ascii "\013Secretinput\000"
  452. .L187:
  453. .ascii "\003MMM\000"
  454. .L230:
  455. .ascii "\004Done\000"
  456. .L251:
  457. .ascii "\011Hide/Show\000"
  458. .L298:
  459. .ascii "\005input\000"
  460. .data
  461. .bss
  462. .lcomm _FD_INPUT,4
  463. .comm HEAP,2097152