Skip to content

Instantly share code, notes, and snippets.

@alexsunday
alexsunday / flutter_scroll_horizontal
Created April 4, 2023 12:08
flutter scroll horizontal
import 'package:flutter/material.dart';
class TestSingleScroll extends StatelessWidget {
const TestSingleScroll({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
const n = 10;
final List<Widget> children = [];
for (int i = 0; i != n; i++) {
assume cs:code, ds:data, ss:stack
data segment
db 9,8,7,4,2,0
db '00/00/00 00:00:00','$'
data ends
stack segment stack
db 128 dup (0)
stack ends
assume cs:code, ds:data, ss:stack
; 编写 0 号中断的处理,使得除法溢出发生时,屏幕中间显示字符串 divide error
data segment
db 128 dup (0)
data ends
stack segment stack
db 128 dup (0)
stack ends
assume cs:code, ds:data, ss:stack
data segment
; 编写一个子程序,将下列字符串小写字母变成大写
; 小写字母必须在 [0x61, 0x7A] 闭区间
; 并分别显示在屏幕上
db "Beginer's All - purpose Symbolic Instruction Code.", 0
data ends
stack segment stack
assume cs:code,ds:data,ss:stack
data segment
db 128 dup(0)
data ends
stack segment stack
db 128 dup(0)
stack ends
assume cs:code,ds:data,ss:stack
data segment
db 128 dup(0)
data ends
stack segment stack
db 128 dup(0)
stack ends
assume cs:code,ds:data,ss:stack
data segment
db 'Hello, World',0
data ends
stack segment stack
db 128 dup(0)
stack ends
assume cs:code,ds:data,ss:stack
data segment
db '1975','1976','1977','1978','1979','1980','1981','1982','1983'
db '1984','1985','1986','1987','1988','1989','1990','1991','1992'
db '1993','1994','1995'
;以上是表示21年的21个字符串 year
dd 16,22,382,1356,2390,8000,16000,24486,50065,9749,14047,19751
dd 34598,59082,80353,11830,18430,27590,37530,46490,59370
assume cs:code,ds:data,ss:stack
data segment
dw 12213, 31361
data ends
stack segment stack
db 128 dup (0)
stack ends
assume cs:code, ds:data, ss:stack
data segment
db 'welcome to masm!'
data ends
stack segment stack
db 128 dup (0)
stack ends